diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-12-06 21:02:30 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-12-06 21:02:30 -0800 |
commit | c22bf27cc2b69bc2109b9562cbd1a8f6a9143ef4 (patch) | |
tree | 9509edbdfed76a912aa72262c26c0b07a6baaea2 | |
parent | 2be72bb1c3c5790e0ce68c2609de141bf9756614 (diff) |
Add the current file/line at the top of the trace.
-rw-r--r-- | modules/gallery/libraries/MY_Kohana_Exception.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/gallery/libraries/MY_Kohana_Exception.php b/modules/gallery/libraries/MY_Kohana_Exception.php index 32b4ab93..dd5998a1 100644 --- a/modules/gallery/libraries/MY_Kohana_Exception.php +++ b/modules/gallery/libraries/MY_Kohana_Exception.php @@ -23,7 +23,9 @@ class Kohana_Exception extends Kohana_Exception_Core { */ public static function text($e) { return sprintf( - "%s [ %s ]: %s\n%s", - get_class($e), $e->getCode(), strip_tags($e->getMessage()), $e->getTraceAsString()); + "%s [ %s ]: %s\n%s [ %s ]\n%s", + get_class($e), $e->getCode(), strip_tags($e->getMessage()), + $e->getFile(), $e->getLine(), + $e->getTraceAsString()); } }
\ No newline at end of file |