]> git.mxchange.org Git - city.git/blobdiff - application/city/exceptions.php
Added region database handling and creation (partly finished).
[city.git] / application / city / exceptions.php
index d3b9d642ab0e67d36774229b8a1c03595d985e26..1646b64b77b01bf8a9f79000f21f7cfab02d6e8f 100644 (file)
@@ -22,7 +22,7 @@
  */
 
 // The node's own exception handler
-function tests_exception_handler ($exceptionInstance) {
+function city_exception_handler ($exceptionInstance) {
        // Is it an object and a valid instance?
        if ((is_object($exceptionInstance)) && ($exceptionInstance instanceof FrameworkException)) {
                // Init variable
@@ -120,6 +120,7 @@ function __assertHandler ($file, $line, $code) {
        );
 
        // Log assert
+       die('message='.$message);
        syslog(LOG_WARNING, $message);
 
        // Throw an exception here
@@ -130,7 +131,7 @@ function __assertHandler ($file, $line, $code) {
 //set_error_handler('__errorHandler');
 
 // Set the new handler
-set_exception_handler('tests_exception_handler');
+set_exception_handler('city_exception_handler');
 
 // Init assert handling
 assert_options(ASSERT_ACTIVE    , TRUE);