mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-30 02:07:52 +03:00
12 lines
316 B
PHP
12 lines
316 B
PHP
<?php
|
|
$error = array(
|
|
'code' => $exception->getCode(),
|
|
'message' => $exception->getMessage()
|
|
);
|
|
|
|
if (CONST_Debug) {
|
|
$error['details'] = $exception->getFile() . '('. $exception->getLine() . ')';
|
|
}
|
|
|
|
echo javascript_renderData(array('error' => $error));
|