leebyron/async-to-gen

Better output when parser fails

oliverwoodings opened this issue · 3 comments

Right now if you have a syntax error, babylon fails but doesn't actually tell you where the issue is - the stack trace just points to babylon itself:

screen shot 2016-11-20 at 19 35 40

Is there any way to get better output from this, or am I missing something?

I think babylon might have improved their errors in a more recent version - I'll take a look

Indeed, updating to latest babylon highlights the line with the issue which is much nicer. I just updated the dependencies to pull it in

You're on 🔥! Thanks again