make HTML error message less technical

This commit is contained in:
Sarah Hoffmann
2018-11-15 21:19:31 +01:00
parent 2a39bc6e68
commit 7f0a0ce5e5

View File

@@ -30,12 +30,11 @@
<h3>Details</h3>
Uncaught exception <em><?php echo get_class($exception) ?></em>
with message <em><?php echo $exception->getMessage() ?></em>
<?php echo $exception->getMessage() ?>
<?php if (CONST_Debug) { ?>
<br>
thrown in <em><?php $exception->getFile() . '('. $exception->getLine() . ')' ?></em>.
<p>
Exception <em><?php echo get_class($exception) ?></em> thrown in <em><?php echo $exception->getFile() . '('. $exception->getLine() . ')' ?></em>.
<?php if (get_class($exception) == 'Nominatim\DatabaseError') { ?>