From: Rafael Kitover Date: Thu, 10 Jun 2010 03:39:06 +0000 (+0000) Subject: add template name to exceptions X-Git-Tag: v0.35~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-View-TT.git;a=commitdiff_plain;h=c5c3c6bdb1ffeb7f5818721324889be90720c244 add template name to exceptions --- diff --git a/Changes b/Changes index ecb5cb3..ef8f2dd 100644 --- a/Changes +++ b/Changes @@ -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 diff --git a/lib/Catalyst/View/TT.pm b/lib/Catalyst/View/TT.pm index 964411d..58b2476 100644 --- a/lib/Catalyst/View/TT.pm +++ b/lib/Catalyst/View/TT.pm @@ -214,7 +214,7 @@ sub process { 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);