X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2eccb0e69dd4e443ec534fb9baa374b76ee7e57f..7b430bc731ee68005a7b52bb2a22f53914011381:/website/reverse.php diff --git a/website/reverse.php b/website/reverse.php index f569ffac..d9ecc09e 100755 --- a/website/reverse.php +++ b/website/reverse.php @@ -105,8 +105,7 @@ $iPlaceID = $aPlace['place_id']; if (PEAR::IsError($iPlaceID)) { - var_Dump($sSQL, $iPlaceID); - exit; + failInternalError("Could not determine closest place.", $sSQL, $iPlaceID); } } @@ -118,8 +117,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) @@ -129,8 +127,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)