From: Αριστοτέλης Παγκαλτζής Date: Tue, 19 Jan 2010 21:41:23 +0000 (+0000) Subject: fix $c->error doc in Catalyst.pm POD X-Git-Tag: 5.80019~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=7d6820cc9cd445e7a3d0c3094584a5eb31f60eb1 fix $c->error doc in Catalyst.pm POD --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index f1c63fd..b243772 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -331,7 +331,7 @@ all 'dies' within the called action. If you want C to propagate you need to do something like: $c->forward('foo'); - die $c->error if $c->error; + die join "\n", @{ $c->error } if @{ $c->error }; Or make sure to always return true values from your actions and write your code like this: