mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-24 14:32:29 +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));
|