Skip to content
Permalink
Browse files Browse the repository at this point in the history
Error Handling: PDO exception handling
(cherry picked from commit 65da344)
  • Loading branch information
mjansenDatabay committed Apr 13, 2018
1 parent 9c6c8ea commit ca982e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion error.php
Expand Up @@ -32,5 +32,7 @@
throw $e;
}

die($e->getMessage());
if (!($e instanceof \PDOException)) {
die($e->getMessage());
}
}

0 comments on commit ca982e5

Please sign in to comment.