Skip to content

Commit f45c000

Browse files
committed
Print the LHS first in incompatible unit errors
1 parent 91b9cb3 commit f45c000

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

spec/core_functions/math/max.hrx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ a {b: max($arg, 2s)}
155155

156156

157157
<===> error/incompatible_units/error
158-
Error: 2s and 1px have incompatible units.
158+
Error: 1px and 2s have incompatible units.
159159
,
160160
2 | a {b: max($arg, 2s)}
161161
| ^^^^^^^^^^^^^

spec/core_functions/math/min.hrx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ $arg: 1px;
154154
a {b: min($arg, 2s)}
155155

156156
<===> error/incompatible_units/error
157-
Error: 2s and 1px have incompatible units.
157+
Error: 1px and 2s have incompatible units.
158158
,
159159
2 | a {b: min($arg, 2s)}
160160
| ^^^^^^^^^^^^^

spec/core_functions/meta/load_css/error.hrx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ Error: Expected expression.
531531
a {b: 1px + 1em}
532532

533533
<===> from_other/runtime/error
534-
Error: 1em and 1px have incompatible units.
534+
Error: 1px and 1em have incompatible units.
535535
,
536536
1 | a {b: 1px + 1em}
537537
| ^^^^^^^^^

spec/directives/forward/error/with.hrx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ Error: This variable is available from multiple global modules.
127127
$a: c !default;
128128

129129
<===> invalid_expression/error/error
130-
Error: 1em and 1px have incompatible units.
130+
Error: 1px and 1em have incompatible units.
131131
,
132132
1 | @forward "upstream" with ($a: 1px + 1em);
133133
| ^^^^^^^^^

spec/directives/use/error/with.hrx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Error: This variable is available from multiple global modules.
104104
$a: c !default;
105105

106106
<===> invalid_expression/error/error
107-
Error: 1em and 1px have incompatible units.
107+
Error: 1px and 1em have incompatible units.
108108
,
109109
1 | @use "other" with ($a: 1px + 1em);
110110
| ^^^^^^^^^

spec/libsass-closed-issues/issue_1577.hrx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ $foo: 10%; // line 1
44
$error: $foo + 20px; // line 3
55

66
<===> error
7-
Error: 20px and 10% have incompatible units.
7+
Error: 10% and 20px have incompatible units.
88
,
99
3 | $error: $foo + 20px; // line 3
1010
| ^^^^^^^^^^^

spec/non_conformant/errors/invalid-operation/sub.hrx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ test {
33
err: 2px - 2px*2px;
44
}
55
<===> error
6-
Error: 4px*px and 2px have incompatible units.
6+
Error: 2px and 4px*px have incompatible units.
77
,
88
2 | err: 2px - 2px*2px;
99
| ^^^^^^^^^^^^^

0 commit comments

Comments
 (0)