]> git.openstreetmap.org Git - nominatim.git/commitdiff
make HTML error message less technical
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 15 Nov 2018 20:19:31 +0000 (21:19 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 15 Nov 2018 20:19:31 +0000 (21:19 +0100)
lib/template/error-html.php

index 208237eb081f2c4461f0b77e89ddc17e201b7c98..11a1846b84e5de74d5f6b45ee9db012b229d1df3 100644 (file)
 
     <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') { ?>