diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-20 23:14:51 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-20 23:14:51 -0800 |
commit | 8a1c17d869575c9a19dc59e5470d664692f8e910 (patch) | |
tree | 12db669c1453b2671ed2d34c6c6aad05cdc2416c /modules | |
parent | 3f3159d25caaea0c46583a6505c5dcc03b4fafe2 (diff) |
Use the exception itself to print out a nice text message.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery_unit_test/views/kohana/error.php | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/modules/gallery_unit_test/views/kohana/error.php b/modules/gallery_unit_test/views/kohana/error.php index 34053317..079a279b 100644 --- a/modules/gallery_unit_test/views/kohana/error.php +++ b/modules/gallery_unit_test/views/kohana/error.php @@ -1,20 +1,6 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> <? -echo $error, "\n\n"; -if (!empty($description)) { - echo wordwrap($description, 80), "\n\n"; -} -if (!empty($line) && !empty($file)) { - echo $file, "[", $line, "]:\n"; -} -echo $message, "\n\n"; - -if (!empty($trace)) { - $trace = preg_replace( - array('/<li>/', '/<(.*?)>/', '/>/'), - array(" ", '', '>'), - $trace); - echo "Stack Trace:\n"; - echo $trace, "\n"; -} +echo $e->getMessage(), "\n"; +echo $e->getFile(), ":", $e->getLine(), "\n"; +echo $e->getTraceAsString(), "\n"; |