summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-04-12 07:43:54 +0200
committerThomas Lange <code@nerdmind.de>2017-04-12 07:43:54 +0200
commit116c70e164906eab8b705e37e18791ca42777ab6 (patch)
tree8b3521808b30036e9905b7c95ba2b558b5dc8363 /core
parent86b0b2c70f2d6929543878609cefe6a9e5542ec7 (diff)
downloadblog-116c70e164906eab8b705e37e18791ca42777ab6.tar.gz
blog-116c70e164906eab8b705e37e18791ca42777ab6.tar.xz
blog-116c70e164906eab8b705e37e18791ca42777ab6.zip
Catch block for PDOException was modified.
Diffstat (limited to 'core')
-rw-r--r--core/application.php3
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());
}
#===============================================================================