PDOException call in catch was causing exception itself

This commit is contained in:
marc tobias 2019-03-17 02:47:28 +01:00
parent 279eae4b92
commit 61386c5b4d

View File

@ -58,7 +58,6 @@ class DB
$val = $this->connection->exec($sSQL);
}
} catch (\PDOException $e) {
$sErrMessage = $e->message();
throw new \Nominatim\DatabaseError($sErrMessage, 500, null, $e, $sSQL);
}
return $val;