X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst.pm;h=48d345648cf4bb608b0c2d4ae9c94f965ea90a9e;hp=e68e18cb3f92738bfa7dd59c75052c9fcb8c332c;hb=b914d353122f4e27ee483d7522a8f41e1f410ec3;hpb=4dee90936d34763db2a273855abadc52cd65c379 diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index e68e18c..48d3456 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -4297,18 +4297,20 @@ value to undef. C -When there is an error in an action chain, the default behavior is to continue -processing the remaining actions and then catch the error upon chain end. This -can lead to running actions when the application is in an unexpected state. If -you have this issue, setting this config value to true will promptly exit a -chain when there is an error raised in any action (thus terminating the chain -early.) +Defaults to true. -use like: +When there is an error in an action chain, the default behavior is to +abort the processing of the remaining actions to avoid running them +when the application is in an unexpected state. - __PACKAGE__->config(abort_chain_on_error_fix => 1); +Before version 5.90070, the default used to be false. To keep the old +behaviour, you can explicitely set the value to false. E.g. + + __PACKAGE__->config(abort_chain_on_error_fix => 0); + +If this setting is set to false, then the remaining actions are +performed and the error is caught at the end of the chain. -In the future this might become the default behavior. =item *