Skip to content
Snippets Groups Projects

Resolve #3197730 PDOException not correctly rethrown

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -421,7 +421,7 @@ class Connection extends DatabaseConnection {
if ($e->getCode() == static::DATABASE_NOT_FOUND) {
throw new DatabaseNotFoundException($e->getMessage(), $e->getCode(), $e);
}
throw new $e();
throw $e;
}
return $pdo;
Loading