]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/search.php
set exception handler by request format, not always HTML
[nominatim.git] / website / search.php
index 0ebf1814bcb129fafc63477b637fe5a5c52832cc..0b678caa65994c16145ac18c6141e6c9f11d4793 100755 (executable)
@@ -27,6 +27,7 @@ if (CONST_Search_ReversePlanForAll
 
 // Format for output
 $sOutputFormat = $oParams->getSet('format', array('html', 'xml', 'json', 'jsonv2', 'geojson', 'geocodejson'), 'html');
+set_exception_handler_by_format($sOutputFormat);
 
 $sForcedGeometry = ($sOutputFormat == 'html') ? 'geojson' : null;
 $oGeocode->loadParamArray($oParams, $sForcedGeometry);