[Catalyst-commits] r12693 - Catalyst-Runtime/5.80/trunk/lib

aristotle at dev.catalyst.perl.org aristotle at dev.catalyst.perl.org
Tue Jan 19 21:41:24 GMT 2010


Author: aristotle
Date: 2010-01-19 21:41:23 +0000 (Tue, 19 Jan 2010)
New Revision: 12693

Modified:
   Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm
Log:
fix $c->error doc in Catalyst.pm POD

Modified: Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm
===================================================================
--- Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm	2010-01-19 16:10:05 UTC (rev 12692)
+++ Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm	2010-01-19 21:41:23 UTC (rev 12693)
@@ -331,7 +331,7 @@
 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:




More information about the Catalyst-commits mailing list