Skip to content

Commit

Permalink
Rephrase errors for numbers that must be unitless or % (#1942)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 authored Sep 28, 2023
1 parent 7418756 commit 992a9e1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/core_functions/color/hsl/error/four_args.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ a {
}

<===> alpha/unit/error
Error: $alpha: Expected 0.5px to have no units or "%".
Error: $alpha: Expected 0.5px to have unit "%" or no units.
,
2 | b: hsl(0, 0%, 0%, 0.5px);
| ^^^^^^^^^^^^^^^^^^^^^
Expand Down
2 changes: 1 addition & 1 deletion spec/core_functions/color/hwb/error/four_args.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ Error: $blackness: var(--c) is not a number.
a {b: color.hwb(0, 0%, 0%, 0.5px)}

<===> alpha/unit/error
Error: $alpha: Expected 0.5px to have no units or "%".
Error: $alpha: Expected 0.5px to have unit "%" or no units.
,
2 | a {b: color.hwb(0, 0%, 0%, 0.5px)}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
2 changes: 1 addition & 1 deletion spec/core_functions/color/rgb/error/four_args.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ a {
}

<===> alpha/unit/error
Error: $alpha: Expected 0.5px to have no units or "%".
Error: $alpha: Expected 0.5px to have unit "%" or no units.
,
2 | b: rgb(0, 0, 0, 0.5px);
| ^^^^^^^^^^^^^^^^^^^
Expand Down
2 changes: 1 addition & 1 deletion spec/core_functions/color/rgb/error/two_args.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ a {
}

<===> alpha/unit/error
Error: $alpha: Expected 0.5px to have no units or "%".
Error: $alpha: Expected 0.5px to have unit "%" or no units.
,
2 | b: rgb(#123, 0.5px);
| ^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit 992a9e1

Please sign in to comment.