X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/399cb31507ce9c53e1be2b8606a9070c2bc132fb..55ca68671d495ad05559a010ae9884a7e2307be6:/website/reverse.php diff --git a/website/reverse.php b/website/reverse.php index b050484d..ed7090e2 100755 --- a/website/reverse.php +++ b/website/reverse.php @@ -120,8 +120,7 @@ $iPlaceID = $aPlace['place_id']; if (PEAR::IsError($iPlaceID)) { - var_Dump($sSQL, $iPlaceID); - exit; + failInternalError("Could not determine closest place.", $sSQL, $iPlaceID); } } @@ -133,8 +132,7 @@ $iPlaceID = $oDB->getOne($sSQL); if (PEAR::IsError($iPlaceID)) { - var_Dump($sSQL, $iPlaceID); - exit; + failInternalError("Could not get parent for place.", $sSQL, $iPlaceID); } if ($iPlaceID && $aPlace['place_id'] && $iMaxRank < 28) @@ -144,8 +142,7 @@ $iPlaceID = $oDB->getOne($sSQL); if (PEAR::IsError($iPlaceID)) { - var_Dump($sSQL, $iPlaceID); - exit; + failInternalError("Could not get larger parent for place.", $sSQL, $iPlaceID); } } if (!$iPlaceID)