Skip to content

Commit 7e0d815

Browse files
authored
Merge pull request #1081 from whitevast/alpha-1
Update errors.class.php
2 parents 935df26 + 9cf3562 commit 7e0d815

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/errors.class.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function majordomoExceptionHandler($e)
107107
} else {
108108
$url = 'commandline';
109109
}
110-
$message = $url . "\nPHP exception: " . $e->getMessage() . "\nBacktrace: " . $e->getTraceAsString();
110+
$message = $url . "\nPHP exception: " . $e->getMessage() . " in " . $e->getFile() . " on line " . $e->getLine() . "\nBacktrace: " . $e->getTraceAsString();
111111
DebMes($message,'php_exceptions');
112112
majordomoSaveError($message, 'exceptions');
113113
return true;
@@ -157,4 +157,4 @@ function phpShutDownFunction()
157157

158158
register_shutdown_function('phpShutDownFunction');
159159
set_error_handler("majordomoErrorHandler");
160-
set_exception_handler('majordomoExceptionHandler');
160+
set_exception_handler('majordomoExceptionHandler');

0 commit comments

Comments
 (0)