Commit 94f9c3e7 authored by Dominik Hebeler's avatar Dominik Hebeler

not aborting anymore on xml error

parent b21aeb8b
......@@ -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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment