X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fhub%2Fexceptions.php;h=d5339b1a686f87595a0a9a620d5c850a0a786a32;hb=8c3a2757d0c587cfdcc36c913ffb70962f078cfa;hp=0ada1c1d2599f9c50765dcfa2f311068fd1e0b4a;hpb=cbc79963e60aeeeedc2e054d9beceaf1fd1465ea;p=hub.git diff --git a/application/hub/exceptions.php b/application/hub/exceptions.php index 0ada1c1d2..d5339b1a6 100644 --- a/application/hub/exceptions.php +++ b/application/hub/exceptions.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0 - * @copyright Copyright (c) 2007 - 2008 Roland Haeder, 2009 - 2014 Hub Developer Team + * @copyright Copyright (c) 2007 - 2008 Roland Haeder, 2009 - 2015 Hub Developer Team * @license GNU GPL 3.0 or any newer version * * This program is free software: you can redistribute it and/or modify @@ -84,9 +84,11 @@ Backtrace: // Output the message print($message); } else { - // Invalid exception instance detected! Do *only* throw exceptions that - // extends our own exception 'FrameworkException' to get such nice - // outputs like above. + /* + * Invalid exception instance detected! Do *only* throw exceptions that + * extends our own exception 'FrameworkException' to get such nice + * outputs like above. + */ print('exceptionInstance[]=' . gettype($exceptionInstance) . ' is invalid! Please inform the core developer team.'); } } @@ -120,7 +122,7 @@ function __assertHandler ($file, $line, $code) { ); // Log assert - die($message); + die($message . PHP_EOL); syslog(LOG_WARNING, $message); // Throw an exception here