X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FActionChain.pm;h=ed2fb51a8cedc1689724b8472eb67d6cc103a8a0;hb=9434a81501df74c1bbe5745cc2bc3476213f2733;hp=496000bc2d0bc7791ee6ebaaae21f3008a48560a;hpb=0cff119a540a3c8961750bd499f4c470771ac342;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/ActionChain.pm b/lib/Catalyst/ActionChain.pm index 496000b..ed2fb51 100644 --- a/lib/Catalyst/ActionChain.pm +++ b/lib/Catalyst/ActionChain.pm @@ -34,6 +34,9 @@ sub dispatch { } local $c->request->{arguments} = \@args; $action->dispatch( $c ); + + # break the chain if exception occurs in the middle of chain + return if (@{$c->error} && $c->config->{abort_chain_on_error_fix}); } $last->dispatch( $c ); }