X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e929399d4dd23fa1571dd77cf489ef51d716f5cc..0df5f77bc4c92e2f8f635105441779277435da67:/website/lookup.php diff --git a/website/lookup.php b/website/lookup.php index f09506a4..ec2a3a8a 100755 --- a/website/lookup.php +++ b/website/lookup.php @@ -12,6 +12,7 @@ $oParams = new Nominatim\ParameterParser(); // Format for output $sOutputFormat = $oParams->getSet('format', array('xml', 'json', 'geojson'), 'xml'); +set_exception_handler_by_format($sOutputFormat); // Preferred language $aLangPrefOrder = $oParams->getPreferredLanguages();