mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-27 10:43:02 +03:00
PDOException call in catch was causing exception itself
This commit is contained in:
parent
279eae4b92
commit
61386c5b4d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user