summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-07-20 18:47:32 -0700
committerBharat Mediratta <bharat@menalto.com>2009-07-20 18:47:32 -0700
commit3aea4dd118208d6d7859ebf1d32249a8644b655b (patch)
tree638e9d2aff7a245a941ba0c36e430bf6fe14d3c4 /modules
parentfb7d99740d9868938ec21449d57b9b3fe991f513 (diff)
Dump out the error message along with the stack trace when we catch an
exception from View::render()
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/libraries/MY_View.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/gallery/libraries/MY_View.php b/modules/gallery/libraries/MY_View.php
index 84ee0892..43783158 100644
--- a/modules/gallery/libraries/MY_View.php
+++ b/modules/gallery/libraries/MY_View.php
@@ -38,8 +38,7 @@ class View extends View_Core {
try {
return parent::render($print, $renderer);
} catch (Exception $e) {
- Kohana::Log('error', $e->getTraceAsString());
- Kohana::Log('debug', $e->getMessage());
+ Kohana::Log("error", $e->getMessage() . "\n" . $e->getTraceAsString());
return "";
}
}