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

intercept parse errors with options.onerror #199

Merged
merged 3 commits into from
Dec 15, 2016
Merged

intercept parse errors with options.onerror #199

merged 3 commits into from
Dec 15, 2016

Conversation

Rich-Harris
Copy link
Member

Fixes a minor oversight – parse errors should be intercepted by options.onerror the same as validator errors etc. This allows build tool plugins to use err.loc and err.frame to provide useful and nicely formatted feedback about where the error is.

@codecov-io
Copy link

codecov-io commented Dec 15, 2016

Current coverage is 92.33% (diff: 80.00%)

Merging #199 into master will decrease coverage by 0.04%

@@             master       #199   diff @@
==========================================
  Files            61         61          
  Lines          1693       1697     +4   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           1564       1567     +3   
- Misses          129        130     +1   
  Partials          0          0          

Powered by Codecov. Last update a4a67ff...c09a02c

@Rich-Harris Rich-Harris merged commit 14ef2ed into master Dec 15, 2016
@Rich-Harris Rich-Harris deleted the onerror branch December 15, 2016 17:47
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