Skip to content

Commit

Permalink
Don't use unival on JVM backend (NYI there)
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed May 29, 2017
1 parent 9494cbd commit 608e886
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/Exception.pm
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,12 @@ my class X::Worry::P5::LeadingZero is X::Worry::P5 {
method message {
'Leading 0 has no meaning. If you meant to create an octal number'
~ ", use '0o' prefix" ~ (
#?if jvm
$!value ~~ /<[89]>/
#?endif
#?if !jvm
$!value.comb.grep(*.unival > 7)
#?endif
?? ", but note that $!value is not a valid octal number"
!! "; like, '0o$!value'"
) ~ '. If you meant to create a string, please add quotation marks.'
Expand Down

0 comments on commit 608e886

Please sign in to comment.