Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Produce better stack traces for syntax errors loaded via import/use #722

Merged
merged 2 commits into from
Jun 19, 2019

Conversation

nex3
Copy link
Contributor

@nex3 nex3 commented Jun 17, 2019

We now wrap _withStackFrame() around wider sections of code, including
_loadStylesheet() which handles parse errors, so that the @use/@import
stack frames are available.

See sass/sass-spec#1404

@nex3 nex3 requested a review from srawlins June 17, 2019 17:03
Copy link
Contributor

@srawlins srawlins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it.

@nex3 nex3 force-pushed the syntax-error-stack-trace branch from 658dce6 to 3eb31c5 Compare June 18, 2019 19:31
nex3 added 2 commits June 18, 2019 13:33
We now wrap _withStackFrame() around wider sections of code, including
_loadStylesheet() which handles parse errors, so that the @use/@import
stack frames are available.
@nex3 nex3 force-pushed the syntax-error-stack-trace branch from 3eb31c5 to 8e6364e Compare June 18, 2019 20:33
@nex3 nex3 merged commit e4b18b5 into feature.use Jun 19, 2019
@nex3 nex3 deleted the syntax-error-stack-trace branch June 19, 2019 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants