Make debugging incorrect tags easier
phpcs-errors:253 phpunit-status:successful
This commit is contained in:
parent
863fb2ad6e
commit
a03f293321
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user