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";