forked from hans/Nominatim
Merge pull request #1334 from mtmail/fix-PDOException-call
PDOException call in catch was causing exception itself
This commit is contained in:
@@ -58,7 +58,6 @@ class DB
|
|||||||
$val = $this->connection->exec($sSQL);
|
$val = $this->connection->exec($sSQL);
|
||||||
}
|
}
|
||||||
} catch (\PDOException $e) {
|
} catch (\PDOException $e) {
|
||||||
$sErrMessage = $e->message();
|
|
||||||
throw new \Nominatim\DatabaseError($sErrMessage, 500, null, $e, $sSQL);
|
throw new \Nominatim\DatabaseError($sErrMessage, 500, null, $e, $sSQL);
|
||||||
}
|
}
|
||||||
return $val;
|
return $val;
|
||||||
|
|||||||
Reference in New Issue
Block a user