Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Put in plumbing to mention denominator in N/0 fail
  • Loading branch information
lizmat committed Jun 6, 2015
1 parent 2807e85 commit ac720ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/Exception.pm
Expand Up @@ -1731,8 +1731,10 @@ my class X::Numeric::Real is Exception {

my class X::Numeric::DivideByZero is Exception {
has $.using;
has $.numerator;
method message() {
"Divide by zero" ~ ( $.using ?? " using $.using" !! '' );
"Attempt to divide{$.numerator ?? " $.numerator" !! ''} by zero"
~ ( $.using ?? " using $.using" !! '' );
}
}

Expand Down

0 comments on commit ac720ed

Please sign in to comment.