Merge pull request #1334 from mtmail/fix-PDOException-call

PDOException call in catch was causing exception itself
This commit is contained in:
Sarah Hoffmann 2019-03-18 21:26:23 +01:00 committed by GitHub
commit c78a64ec9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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;