From 82f4aa4918ad2c2181860c1330506179b75fe147 Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Thu, 28 Sep 2023 11:19:17 -0700 Subject: [PATCH] Rephrase errors for numbers that must be unitless or % --- lib/src/functions/color.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/functions/color.dart b/lib/src/functions/color.dart index 3e6ce871b..9fd40720a 100644 --- a/lib/src/functions/color.dart +++ b/lib/src/functions/color.dart @@ -788,7 +788,7 @@ double _percentageOrUnitless(SassNumber number, num max, String name) { value = max * number.value / 100; } else { throw SassScriptException( - '\$$name: Expected $number to have no units or "%".'); + '\$$name: Expected $number to have unit "%" or no units.'); } return value.clamp(0, max).toDouble();