ReasonablyTyped icon indicating copy to clipboard operation
ReasonablyTyped copied to clipboard

Better error output for parse errors

Open rrdelaney opened this issue 8 years ago • 2 comments

Right now the parse errors are really bad:

Error: Parse_error.Error: undefined
    at Object.compile (/usr/local/lib/node_modules/reasonably-typed/lib/index.js:45:11)
    at fs.readFile (/usr/local/lib/node_modules/reasonably-typed/lib/cli.js:86:40)
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:503:3)

We should make this better. I'm thinking something like the codeframe errors we do now for Modulegen errors.

rrdelaney avatar Oct 04 '17 03:10 rrdelaney

I'd like to tackle this, please?

kogai avatar Mar 07 '18 05:03 kogai

Go for it 😁 feel free to PM me on discord if you need any help!

rrdelaney avatar Mar 07 '18 05:03 rrdelaney