diff --git a/functions/functions.php b/functions/functions.php index 4f76f69..f1ad189 100644 --- a/functions/functions.php +++ b/functions/functions.php @@ -191,7 +191,8 @@ function createTextDomElement(DOMDocument $xmlDoc, string $tag, string $content) $element = $xmlDoc->createElement($tag); } catch (DOMException $e) { - echo "Error at " . __FILE__ . ", line #" . __LINE__; + echo "Error at " . __FILE__ . ", line #" . __LINE__ . PHP_EOL . "
"; + echo "Cannot create DOM element for $tag / $content"; exit; }