Skip to content

Commit cf12e13

Browse files
committed
Improve calc() warnings.
1 parent 7050daf commit cf12e13

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/CSS/Module/CSS3/Values_and_Units.rakumod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ class Actions {
144144
given type(|@expr) {
145145
when $expected-type | 0 | 'percent' { } # permitted
146146
when 'fail' {
147-
$.warning: "Unable to evaluate calc() expression";
147+
$.warning: "Unable to evaluate expression", $/.Str;
148148
}
149149
default {
150-
$.warning: "Expected calc() expression of type $expected-type, got: $_";
150+
$.warning: "Expected type of $expected-type, got {$_ ~~ Numeric ?? 'number' !! $_}", $/.Str;
151151
}
152152
}
153153
}

0 commit comments

Comments
 (0)