From 4dc8093881ff49412eb905793c137eda5793e02b Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Thu, 27 Feb 2025 22:20:38 +0300 Subject: [PATCH] Adding exception source file and line in digest message --- error.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/error.inc.php b/error.inc.php index e1b6119..d97a647 100644 --- a/error.inc.php +++ b/error.inc.php @@ -22,6 +22,10 @@ function _gamectl_exception_handler($e) //let's filter out too stack traces which are printed anyway foreach($lines as $idx => $line) { + if($idx === 0) + { + $line = 'Exception in ' . $e->getFile() . ':' . $e->getLine() . "\n" . $line; + } if($idx > 0 && preg_match('~^#\d+\s+~', $line)) continue; $digest .= $line . "\n";