Make debugging incorrect tags easier

phpcs-errors:253 phpunit-status:successful
This commit is contained in:
Joshua Ramon Enslin 2019-11-13 22:25:42 +01:00 committed by Stefan Rohde-Enslin
parent 863fb2ad6e
commit a03f293321

View File

@ -191,7 +191,8 @@ function createTextDomElement(DOMDocument $xmlDoc, string $tag, string $content)
$element = $xmlDoc->createElement($tag); $element = $xmlDoc->createElement($tag);
} }
catch (DOMException $e) { catch (DOMException $e) {
echo "Error at " . __FILE__ . ", line #" . __LINE__; echo "Error at " . __FILE__ . ", line #" . __LINE__ . PHP_EOL . "<br/>";
echo "Cannot create DOM element for $tag / $content";
exit; exit;
} }