]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/Status.php
correctly catch the exception when import date is missing
[nominatim.git] / lib-php / Status.php
index 2d9e78db42606f59a90cb2d6e18ad4d8774a6a2e..0a7f916b5c009e54192073b60349143782198f8b 100644 (file)
@@ -51,7 +51,7 @@ class Status
         $iDataDateEpoch = $this->oDB->getOne($sSQL);
 
         if ($iDataDateEpoch === false) {
-            throw Exception('Data date query failed '.$iDataDateEpoch->getMessage(), 705);
+            throw new Exception('Import date is not available', 705);
         }
 
         return $iDataDateEpoch;