Nominatim/lib-php/template/error-json.php
2021-07-09 12:50:35 +02:00

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