better docs for the detach on die feature
John Napiorkowski [Wed, 12 Jun 2013 13:22:40 +0000 (09:22 -0400)]
Changes
lib/Catalyst.pm

diff --git a/Changes b/Changes
index 3c88749..de5caac 100644 (file)
--- a/Changes
+++ b/Changes
@@ -12,6 +12,11 @@ TBA
   - lets you access a psgix.io socket, if your server supports it, for manual
     handling of the client - server communication, such as for websockets.
   - Fix waiting for the server to start in t/author/http-server.t
+  - new config flag 'abort_chain_on_error_fix' that exits immediately when a
+    action in an action chain throws and error (fixes issues where currently
+    the remaining actions are processed and the error is handled at chain
+    termination).
+  - minor documentation typo fixes and updates
 
 5.90030 - 2013-04-12
   ! POSSIBLE BREAKING CHANGE: Removed Regexp dispatch type from core, and put
index 55845cd..2e03326 100644 (file)
@@ -3185,6 +3185,17 @@ C<using_frontend_proxy> - See L</PROXY SUPPORT>.
 
 =back
 
+=item abort_chain_on_error_fix => 1
+
+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.)
+
+In the future this might become the default behavior.
+
 =head1 INTERNAL ACTIONS
 
 Catalyst uses internal actions like C<_DISPATCH>, C<_BEGIN>, C<_AUTO>,