Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
94f9c3e7
Commit
94f9c3e7
authored
Feb 13, 2020
by
Dominik Hebeler
Browse files
not aborting anymore on xml error
parent
b21aeb8b
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Models/XmlSearchengine.php
View file @
94f9c3e7
...
...
@@ -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
~~~~~~~~
\n
is not a valid xml string"
);
Log
::
error
(
$e
->
getMessage
()
);
}
}
protected
abstract
function
loadXmlResults
(
$resultsXml
);
abstract
protected
function
loadXmlResults
(
$resultsXml
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment