From 94f9c3e7ac79da2c24d2f65d9f7a754b495aa572 Mon Sep 17 00:00:00 2001
From: Dominik Hebeler <dominik@suma-ev.de>
Date: Thu, 13 Feb 2020 10:37:59 +0100
Subject: [PATCH] not aborting anymore on xml error

---
 app/Models/XmlSearchengine.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/Models/XmlSearchengine.php b/app/Models/XmlSearchengine.php
index 00472b4a7..e3d5390b1 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);
 }
-- 
GitLab