]> git.mxchange.org Git - hub.git/blobdiff - application/hub/exceptions.php
Continued rewrite:
[hub.git] / application / hub / exceptions.php
index 18642da28013a7d9a5c250f2cddef5be0296477b..0ada1c1d2599f9c50765dcfa2f311068fd1e0b4a 100644 (file)
@@ -120,6 +120,7 @@ function __assertHandler ($file, $line, $code) {
        );
 
        // Log assert
+       die($message);
        syslog(LOG_WARNING, $message);
 
        // Throw an exception here
@@ -129,7 +130,7 @@ function __assertHandler ($file, $line, $code) {
 // Set error handler
 //set_error_handler('__errorHandler');
 
-// Set the new handler
+// Set the exception handler
 set_exception_handler('hub_exception_handler');
 
 // Init assert handling
@@ -137,6 +138,8 @@ assert_options(ASSERT_ACTIVE    , TRUE);
 assert_options(ASSERT_WARNING   , FALSE);
 assert_options(ASSERT_BAIL      , TRUE);
 assert_options(ASSERT_QUIET_EVAL, FALSE);
+
+// Set assertion handler
 assert_options(ASSERT_CALLBACK  , '__assertHandler');
 
 // [EOF]