X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=application%2Fshoutbox%2Fexceptions.php;h=fd41c37727663bfd3d5e82c4f31870119eaa3f99;hp=c6310a399a2863fb923e1b743a714deb61c76631;hb=c3c81f98871f2d7de24d453fba4232e08caef4cf;hpb=fa1e1a17bd1f2a03461e9e4c0f699dbfaddfc294 diff --git a/application/shoutbox/exceptions.php b/application/shoutbox/exceptions.php index c6310a3..fd41c37 100644 --- a/application/shoutbox/exceptions.php +++ b/application/shoutbox/exceptions.php @@ -25,7 +25,7 @@ // Our own exception handler function __exceptionHandler (FrameworkException $e) { // Call the app_die() method - ApplicationEntryPoint::app_die(sprintf("[Main:] The application %s (%s) has been terminated due to a thrown exception: %s [%s]: %s Backtrace:
%s
", + ApplicationEntryPoint::app_die(sprintf("[Main:] The application %s (%s) has terminated due to a thrown exception: %s [%s]: %s Backtrace:
%s
", ApplicationHelper::getInstance()->getAppName(), ApplicationHelper::getInstance()->getAppShortName(), $e->__toString(), @@ -44,7 +44,7 @@ set_exception_handler('__exceptionHandler'); // Error handler function __errorHandler ($errno, $errstr, $errfile, $errline, array $errcontext) { // Construct the message - $message = sprintf("File: %s, Line: %s, Code: %s, Message: %s", + $message = sprintf("File: %s, Line: %s, Code: %s, Message: %s", basename($errfile), $errline, $errno, @@ -64,7 +64,7 @@ function __assertHandler ($file, $line, $code) { if ($code === "") $code = "Unknown"; // Create message - $message = sprintf("File: %s, Line: %s, Code: %s", + $message = sprintf("File: %s, Line: %s, Code: %s", basename($file), $line, $code