mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-10-05 06:57:34 +03:00
Merge pull request #1334 from mtmail/fix-PDOException-call
PDOException call in catch was causing exception itself
This commit is contained in:
commit
c78a64ec9b
@ -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