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> <h3>Details</h3>
Uncaught exception <em><?php echo get_class($exception) ?></em> <?php echo $exception->getMessage() ?>
with message <em><?php echo $exception->getMessage() ?></em>
<?php if (CONST_Debug) { ?> <?php if (CONST_Debug) { ?>
<br> <p>
thrown in <em><?php $exception->getFile() . '('. $exception->getLine() . ')' ?></em>. 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') { ?> <?php if (get_class($exception) == 'Nominatim\DatabaseError') { ?>