mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
make HTML error message less technical
This commit is contained in:
@@ -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') { ?>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user