[Catalyst-commits] r13335 - in Catalyst-View-TT/trunk: .
lib/Catalyst/View
caelum at dev.catalyst.perl.org
caelum at dev.catalyst.perl.org
Thu Jun 10 03:39:06 GMT 2010
Author: caelum
Date: 2010-06-10 04:39:06 +0100 (Thu, 10 Jun 2010)
New Revision: 13335
Modified:
Catalyst-View-TT/trunk/Changes
Catalyst-View-TT/trunk/lib/Catalyst/View/TT.pm
Log:
add template name to exceptions
Modified: Catalyst-View-TT/trunk/Changes
===================================================================
--- Catalyst-View-TT/trunk/Changes 2010-06-07 12:38:01 UTC (rev 13334)
+++ Catalyst-View-TT/trunk/Changes 2010-06-10 03:39:06 UTC (rev 13335)
@@ -1,7 +1,7 @@
Revision history for Perl extension Catalyst::View::TT.
+ - add template name to exceptions
- update render_die message to be more concise.
-
- Doc fixes (RT#57159)
0.34 2010-04-07 04:14:50
Modified: Catalyst-View-TT/trunk/lib/Catalyst/View/TT.pm
===================================================================
--- Catalyst-View-TT/trunk/lib/Catalyst/View/TT.pm 2010-06-07 12:38:01 UTC (rev 13334)
+++ Catalyst-View-TT/trunk/lib/Catalyst/View/TT.pm 2010-06-10 03:39:06 UTC (rev 13335)
@@ -214,7 +214,7 @@
local $@;
my $output = eval { $self->render($c, $template) };
if (my $err = $@) {
- return $self->_rendering_error($c, $err);
+ return $self->_rendering_error($c, $template . ': ' . $err);
}
if (blessed($output) && $output->isa('Template::Exception')) {
$self->_rendering_error($c, $output);
More information about the Catalyst-commits
mailing list