Skip to content

Commit 776d837

Browse files
authored
Merge pull request #1077 from whitevast/patch-7
Update errors.class.php
2 parents 5225264 + 106458d commit 776d837

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/errors.class.php

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

@@ -146,4 +146,4 @@ function phpShutDownFunction()
146146

147147
register_shutdown_function('phpShutDownFunction');
148148
set_error_handler("majordomoErrorHandler");
149-
set_exception_handler('majordomoExceptionHandler');
149+
set_exception_handler('majordomoExceptionHandler');

0 commit comments

Comments
 (0)