Nominatim/lib/template/error-json.php
2018-11-20 23:05:56 +01:00

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));