Skip to content
Snippets Groups Projects
Commit e1fb14c4 authored by Carsten  Rose's avatar Carsten Rose
Browse files

ErrorHandler.php: raise an error as an exception has been stopped in mid 2017...

ErrorHandler.php: raise an error as an exception has been stopped in mid 2017 - don't know why, reactivated now.
parent 425a2a18
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@ class ErrorHandler {
* @param $file
* @param $line
* @return bool|string
* @throws CodeException
*/
public static function exception_error_handler($severity, $message, $file, $line) {
......@@ -30,10 +31,11 @@ class ErrorHandler {
return false;
}
// Do not show too much to the user. E.g. 'ldap_bind()' might have problems, but the user should not see the file and linenumber.
// throw new CodeException($message, $severity, null);
return '';
// Do not show too much to the user. E.g. 'ldap_bind()' might have problems, but the user should not see the
// file and line number. Often the filename is part of the message >> don't show the message to the user.
throw new CodeException(json_encode(
[ERROR_MESSAGE_TO_USER => 'General error - please report.',
ERROR_MESSAGE_SUPPORT => "File: $file / Line: $line / $message"]), $severity, null);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment