]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/lookup.php
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / website / lookup.php
index f09506a4c0de7ae1aef97afa22b38a4aecc9cae1..ec2a3a8a30f97880a4871d54d8539186b4a19832 100755 (executable)
@@ -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();