Skip to content
Snippets Groups Projects
Commit 94f9c3e7 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

not aborting anymore on xml error

parent b21aeb8b
No related branches found
No related tags found
1 merge request!1523not aborting anymore on xml error
...@@ -10,9 +10,9 @@ abstract class XmlSearchengine extends Searchengine ...@@ -10,9 +10,9 @@ abstract class XmlSearchengine extends Searchengine
$resultsXml = simplexml_load_string($results); $resultsXml = simplexml_load_string($results);
$this->loadXmlResults($resultsXml); $this->loadXmlResults($resultsXml);
} catch (\Exception $e) { } 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);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment