diff options
author | Thomas Lange <code@nerdmind.de> | 2017-04-12 07:43:54 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-04-12 07:43:54 +0200 |
commit | 116c70e164906eab8b705e37e18791ca42777ab6 (patch) | |
tree | 8b3521808b30036e9905b7c95ba2b558b5dc8363 | |
parent | 86b0b2c70f2d6929543878609cefe6a9e5542ec7 (diff) | |
download | blog-116c70e164906eab8b705e37e18791ca42777ab6.tar.gz blog-116c70e164906eab8b705e37e18791ca42777ab6.tar.xz blog-116c70e164906eab8b705e37e18791ca42777ab6.zip |
Catch block for PDOException was modified.
-rw-r--r-- | core/application.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/application.php b/core/application.php index 15266d8..fcc1678 100644 --- a/core/application.php +++ b/core/application.php @@ -82,8 +82,7 @@ try { # CATCH: PDOException #=============================================================================== catch(PDOException $Exception) { - http_response_code(503); - exit("PDO database connection error: {$Exception->getMessage()}"); + Application::exit($Exception->getMessage()); } #=============================================================================== |