X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/3bf57e6d2a705645a84645191d2d548696f9095d..93b72e4e9b89826ca93c5ec9ccebf914f16c7f9f:/lib-php/Status.php diff --git a/lib-php/Status.php b/lib-php/Status.php index 2d9e78db..0a7f916b 100644 --- a/lib-php/Status.php +++ b/lib-php/Status.php @@ -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;