]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/reverse.php
Merge branch 'continent' of https://github.com/datendelphin/Nominatim
[nominatim.git] / website / reverse.php
index f569ffac1abbf6ba9dc82ad33ddcc7acb1f1500f..d9ecc09efc83d022cfb3aa4955357bd12b1eee9b 100755 (executable)
                        $iPlaceID = $aPlace['place_id'];
                        if (PEAR::IsError($iPlaceID))
                        {
-                               var_Dump($sSQL, $iPlaceID); 
-                               exit;
+                               failInternalError("Could not determine closest place.", $sSQL, $iPlaceID); 
                        }
                }
 
                        $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)
                                $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)