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

need better error messages #26

Open
dt-rush opened this issue Oct 5, 2018 · 0 comments
Open

need better error messages #26

dt-rush opened this issue Oct 5, 2018 · 0 comments

Comments

@dt-rush
Copy link

dt-rush commented Oct 5, 2018

Currently, failing during parsing just leads to something like:

Error: match failed
    at .../node_modules/ometa-js/lib/ometajs/core.js:64:15
    at fail (.../node_modules/ometa-js/lib/ometajs/core.js:11:20)
    at Object.<anonymous> (.../node_modules/ometa-js/lib/ometajs/core.js:16:2)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)

And if you look in ometajs/core.js, those lines are nothing of interest, those are just the definitions of the fail() function, basically. They don't even have access to the token that we were at when we failed.

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

No branches or pull requests

1 participant