From: Marcus Ramberg Date: Tue, 20 Apr 2010 14:44:43 +0000 (+0000) Subject: More concise render_die message X-Git-Tag: v0.35~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=131a8e59e7617828f50b8178d1898e630d23696f;p=catagits%2FCatalyst-View-TT.git More concise render_die message --- diff --git a/Changes b/Changes index a0814f6..75e7748 100644 --- a/Changes +++ b/Changes @@ -1,4 +1,6 @@ Revision history for Perl extension Catalyst::View::TT. + + - update render_die message to be more concise. 0.34 2010-04-07 04:14:50 - Fix the process method to have the previous behaviour of reporting diff --git a/lib/Catalyst/View/TT.pm b/lib/Catalyst/View/TT.pm index 861d047..4084fe2 100644 --- a/lib/Catalyst/View/TT.pm +++ b/lib/Catalyst/View/TT.pm @@ -257,7 +257,7 @@ sub render { die $self->template->error if $self->{render_die}; return $self->template->error; } - $c->log->debug('The Catalyst::View::TT render() method of will die on error in a future release. Unless you are calling the render() method manually, you probably want the new behaviour, so set render_die => 1 in config for ' . blessed($self) . '. If you are calling the render() method manually and you wish it to continue to return the exception rather than throwing it, add render_die => 0 to your config.') if $c->debug; + $c->log->debug('The Catalyst::View::TT render() method will start dying on error in a future release. Unless you are calling the render() method manually, you probably want the new behaviour, so set render_die => 1 in config for ' . blessed($self) . '. If you wish to continue to return the exception rather than throwing it, add render_die => 0 to your config.') if $c->debug; return $self->template->error; } return $output;