Skip to content

Commit

Permalink
Fix weird and unhelpful @use stack traces
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed May 23, 2019
1 parent 987a66e commit 85405ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
13 changes: 5 additions & 8 deletions spec/directives/use/error/load.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ Error: This module is currently being loaded.
| ^^^^^^^^^^^^
'
other.scss 1:1 @use
other.scss 1:1 root stylesheet
input.scss 1:1 root stylesheet

<===>
================================================================================
Expand All @@ -212,7 +212,7 @@ Error: This file is already being loaded.
| ^^^^^^^
'
other.scss 1:9 @use
other.scss 1:1 root stylesheet
input.scss 1:1 root stylesheet

<===>
================================================================================
Expand Down Expand Up @@ -245,8 +245,7 @@ Error: There's already a module with namespace "other".
2 | @use "other2" as other;
| ^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 2:1 @use
other2.scss 1:1 root stylesheet
input.scss 2:1 root stylesheet

<===>
================================================================================
Expand All @@ -262,8 +261,7 @@ Error: There's already a module with namespace "other".
2 | @use "dir2/other";
| ^^^^^^^^^^^^^^^^^
'
input.scss 2:1 @use
dir2/other.scss 1:1 root stylesheet
input.scss 2:1 root stylesheet

<===>
================================================================================
Expand All @@ -279,5 +277,4 @@ Error: There's already a module with namespace "other".
2 | @use "other2" as other;
| ^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 2:1 @use
other2.scss 1:1 root stylesheet
input.scss 2:1 root stylesheet
3 changes: 1 addition & 2 deletions spec/directives/use/error/member.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ Error: This module and the new module both define a variable named "$member".
3 | @use "other" as *;
| ^^^^^^^^^^^^^^^^^
'
input.scss 3:1 @use
other.scss 1:1 root stylesheet
input.scss 3:1 root stylesheet

<===>
================================================================================
Expand Down

0 comments on commit 85405ef

Please sign in to comment.