Better configuration key name
Dimitar Petrov [Fri, 24 May 2013 06:50:29 +0000 (08:50 +0200)]
Signed-off-by: John Napiorkowski <jjnapiork@cpan.org>

lib/Catalyst/ActionChain.pm
t/lib/TestApp.pm

index b54d553..ed2fb51 100644 (file)
@@ -36,7 +36,7 @@ sub dispatch {
         $action->dispatch( $c );
 
         # break the chain if exception occurs in the middle of chain
-        return if (@{$c->error} && $c->config->{detach_on_die});
+        return if (@{$c->error} && $c->config->{abort_chain_on_error_fix});
     }
     $last->dispatch( $c );
 }
index 9fd0239..89332ba 100644 (file)
@@ -50,7 +50,7 @@ TestApp->config(
             action_action_nine => { another_extra_arg => 13 }
         }
     },
-    detach_on_die => 1,
+    abort_chain_on_error_fix => 1,
 );
 
 # Test bug found when re-adjusting the metaclass compat code in Moose