diff --git a/Kernel/Model.php b/Kernel/Model.php index 4ce8fb8..462d252 100644 --- a/Kernel/Model.php +++ b/Kernel/Model.php @@ -17,7 +17,7 @@ final class Model try{ self::$conn = new PDO($PDO_URI, $_ENV["DB_USERNAME"], $_ENV["DB_PASSWORD"]); }catch(PDOException $e){ - die("Connection to the database failed"); + throw new HTTPSpecialCaseException(500, "Connection to the database failed"); } } }