Permalink
Browse files

Failure.sink should not throw if handled.

  • Loading branch information...
1 parent 99c4f9c commit 45c445ac7bb2e8a062475d10b5c82e6bce7f6388 @jnthn jnthn committed Jan 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/Failure.pm
View
@@ -35,7 +35,7 @@ my class Failure {
$!exception.throw;
}
);
- method sink() { $!exception.throw }
+ method sink() { $!exception.throw unless $!handled }
# class Any has a fallback method, so we need to redefine it here
method postcircumfix:<{ }>(|c) { $!exception.throw }

0 comments on commit 45c445a

Please sign in to comment.