From: Sarah Hoffmann Date: Mon, 18 Mar 2019 20:26:23 +0000 (+0100) Subject: Merge pull request #1334 from mtmail/fix-PDOException-call X-Git-Tag: v3.3.0~19 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/c78a64ec9b86a926fcdeee8fe53b8a2b507069eb?hp=279eae4b9263e18c1fad02a9e72972c6adcec02e Merge pull request #1334 from mtmail/fix-PDOException-call 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;