]> git.openstreetmap.org Git - nominatim.git/commitdiff
PDOException call in catch was causing exception itself
authormarc tobias <mtmail@gmx.net>
Sun, 17 Mar 2019 01:47:28 +0000 (02:47 +0100)
committermarc tobias <mtmail@gmx.net>
Sun, 17 Mar 2019 01:47:28 +0000 (02:47 +0100)
lib/DB.php

index d0066852e705b28d214db1eb6f9e8a7b0108648b..033e23f7f593512229cc3e6752a6031090ca4962 100644 (file)
@@ -58,7 +58,6 @@ class DB
                 $val = $this->connection->exec($sSQL);
             }
         } catch (\PDOException $e) {
                 $val = $this->connection->exec($sSQL);
             }
         } catch (\PDOException $e) {
-            $sErrMessage = $e->message();
             throw new \Nominatim\DatabaseError($sErrMessage, 500, null, $e, $sSQL);
         }
         return $val;
             throw new \Nominatim\DatabaseError($sErrMessage, 500, null, $e, $sSQL);
         }
         return $val;