Pman.php
authorAlan Knowles <alan@roojs.com>
Wed, 15 Aug 2018 03:05:44 +0000 (11:05 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 15 Aug 2018 03:05:44 +0000 (11:05 +0800)
Pman.php

index a10831b..648c958 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -998,6 +998,9 @@ class Pman extends HTML_FlexyFramework_Page
         $ret = array();
         $n = 0;
         $bt = is_a($ex,'Exception')|| is_a($ex, 'Error')  ? $ex->getTrace() : $ex->backtrace;
+        if (is_a($ex,'Exception')|| is_a($ex, 'Error') ) {
+            $ret[] = $ex->getFile() . '('. $ex->getLine() . ')';
+        }
         foreach( $bt as $b) {
             $ret[] = @$b['file'] . '(' . @$b['line'] . ')@' .   @$b['class'] . '::' . @$b['function'];
             if ($n > 20) {