From 61386c5b4daab71fd2f0a58c170a0910aa46e5be Mon Sep 17 00:00:00 2001 From: marc tobias Date: Sun, 17 Mar 2019 02:47:28 +0100 Subject: [PATCH] PDOException call in catch was causing exception itself --- lib/DB.php | 1 - 1 file changed, 1 deletion(-) 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; -- 2.39.5