Skip to content

Commit 4ba9777

Browse files
committed
Add line number to logged exceptions messages
1 parent c9a523c commit 4ba9777

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pihole-updatelists.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1732,7 +1732,7 @@ function checkIfTouchable($array, $comment, $require_comment = true)
17321732
set_exception_handler(
17331733
function (Throwable $e) use (&$config) {
17341734
if ($config['DEBUG'] === false) {
1735-
print 'Exception: ' . $e->getMessage() . PHP_EOL;
1735+
print 'Exception: ' . $e->getMessage() . '(line ' . $e->getLine() . ')' . PHP_EOL;
17361736
}
17371737

17381738
printAndLog($e . PHP_EOL, 'ERROR', $config['DEBUG'] === false);

0 commit comments

Comments
 (0)