From: marc tobias Date: Sun, 17 Mar 2019 01:47:28 +0000 (+0100) Subject: PDOException call in catch was causing exception itself X-Git-Tag: v3.3.0~19^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/61386c5b4daab71fd2f0a58c170a0910aa46e5be PDOException call in catch was causing exception itself --- diff --git a/lib/DB.php b/lib/DB.php index d0066852..033e23f7 100644 --- a/lib/DB.php +++ b/lib/DB.php @@ -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;