]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/reverse.php
Merge pull request #1188 from mtmail/prototype-setup-ubuntu18-nginx
[nominatim.git] / website / reverse.php
index a7261802a40d57aff23145f58cbd594d42e58eaf..963f7500cf225ad0ceaece2e8f2604d9b59542c0 100755 (executable)
@@ -13,6 +13,7 @@ $oParams = new Nominatim\ParameterParser();
 
 // Format for output
 $sOutputFormat = $oParams->getSet('format', array('html', 'xml', 'json', 'jsonv2', 'geojson', 'geocodejson'), 'xml');
+set_exception_handler_by_format($sOutputFormat);
 
 // Preferred language
 $aLangPrefOrder = $oParams->getPreferredLanguages();