]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/DB.php
PDOException call in catch was causing exception itself
[nominatim.git] / lib / DB.php
index d0066852e705b28d214db1eb6f9e8a7b0108648b..033e23f7f593512229cc3e6752a6031090ca4962 100644 (file)
@@ -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;