Skip to content

Commit

Permalink
Restore default Failure message clobbered by pasto
Browse files Browse the repository at this point in the history
  • Loading branch information
skids committed Oct 7, 2015
1 parent 25d3482 commit 5c77383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Failure.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ my class Failure {

multi method new() {
my $stash := CALLER::;
my $payload = $stash<$!>.DEFINITE ?? $stash<$!> !! "Died";
my $payload = $stash<$!>.DEFINITE ?? $stash<$!> !! "Failed";
self.bless(:exception( $payload ~~ Exception
?? $payload !! X::AdHoc.new(:$payload)
))
Expand Down Expand Up @@ -73,7 +73,7 @@ my class Failure {
proto sub fail(|) {*};
multi sub fail() {
my $stash := CALLER::;
my $payload = $stash<$!>.DEFINITE ?? $stash<$!> !! "Died";
my $payload = $stash<$!>.DEFINITE ?? $stash<$!> !! "Failed";

my $fail := Failure.new( $payload ~~ Exception
?? $payload !! X::AdHoc.new(:$payload));
Expand Down

0 comments on commit 5c77383

Please sign in to comment.