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