Skip to content

Commit 00823e0

Browse files
authoredSep 28, 2023
Rephrase errors for numbers that must be unitless or % (#2101)
1 parent 23f0143 commit 00823e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/src/functions/color.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ double _percentageOrUnitless(SassNumber number, num max, String name) {
788788
value = max * number.value / 100;
789789
} else {
790790
throw SassScriptException(
791-
'\$$name: Expected $number to have no units or "%".');
791+
'\$$name: Expected $number to have unit "%" or no units.');
792792
}
793793

794794
return value.clamp(0, max).toDouble();

0 commit comments

Comments
 (0)
Please sign in to comment.