From c22bf27cc2b69bc2109b9562cbd1a8f6a9143ef4 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 6 Dec 2009 21:02:30 -0800 Subject: Add the current file/line at the top of the trace. --- modules/gallery/libraries/MY_Kohana_Exception.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules') 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 -- cgit v1.2.3