correctly catch the exception when import date is missing

This commit is contained in:
Sarah Hoffmann
2021-05-06 15:36:54 +02:00
parent 3bf57e6d2a
commit 93b72e4e9b
2 changed files with 18 additions and 22 deletions

View 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;