Skip to content

Commit

Permalink
fix miss error code
Browse files Browse the repository at this point in the history
  • Loading branch information
millken committed Jan 6, 2021
1 parent 0aa3bc6 commit c99e6a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ public function connect()
}
$this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
throw new PDOException($e);
throw $e;
}

return $this->pdo;
Expand Down

0 comments on commit c99e6a3

Please sign in to comment.