Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Failure.sink should not throw if handled.
  • Loading branch information
jnthn committed Jan 10, 2013
1 parent 99c4f9c commit 45c445a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Failure.pm
Expand Up @@ -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 }
Expand Down

0 comments on commit 45c445a

Please sign in to comment.