[Bps-public-commit] Path-Dispatcher branch, master, updated. 4680cd14a8543594cb2e2a82b9aaed9cf495d0da

Shawn Moore sartak at bestpractical.com
Sun Oct 24 04:11:08 EDT 2010


The branch, master has been updated
       via  4680cd14a8543594cb2e2a82b9aaed9cf495d0da (commit)
      from  05a759f7cabfaa8a229fa389f90e864986489903 (commit)

Summary of changes:
 lib/Path/Dispatcher/Dispatch.pm |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 4680cd14a8543594cb2e2a82b9aaed9cf495d0da
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Sun Oct 24 17:11:10 2010 +0900

    Document why we always die unconditionally

diff --git a/lib/Path/Dispatcher/Dispatch.pm b/lib/Path/Dispatcher/Dispatch.pm
index bae4b69..439227c 100644
--- a/lib/Path/Dispatcher/Dispatch.pm
+++ b/lib/Path/Dispatcher/Dispatch.pm
@@ -42,6 +42,8 @@ sub run {
 
             push @results, $match->run(@args);
 
+            # we always stop after the first match UNLESS they explicitly
+            # ask to continue on to the next rule
             die "Path::Dispatcher abort\n";
         }
         catch {

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list