diff --git a/app/Models/XmlSearchengine.php b/app/Models/XmlSearchengine.php index 00472b4a7bc64d1771243bc94ff6e017b0836e1a..e3d5390b11fabcdb14023cc2cf4c09b158350241 100644 --- a/app/Models/XmlSearchengine.php +++ b/app/Models/XmlSearchengine.php @@ -10,9 +10,9 @@ abstract class XmlSearchengine extends Searchengine $resultsXml = simplexml_load_string($results); $this->loadXmlResults($resultsXml); } catch (\Exception $e) { - abort(500, "\n~~~~~~~~\n$results\n~~~~~~~~\nis not a valid xml string"); + Log::error($e->getMessage()); } } - protected abstract function loadXmlResults($resultsXml); + abstract protected function loadXmlResults($resultsXml); }