Skip to content
New issue

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

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

Already on GitHub? # to your account

expose line info at error; workflow updates #9

Merged
merged 1 commit into from
Aug 19, 2020
Merged

Conversation

chenyong
Copy link
Contributor

Now errors are displayed with line numbers, for example:

/Users/chen/repo/cirru/parser.coffee/lib/parser.js:209
  throw new Error(`${prefixError(state)} open parenthesis in token`);
  ^

Error: cirru/folding.cirru(6:10) open parenthesis in token
    at _token_open (/Users/chen/repo/cirru/parser.coffee/lib/parser.js:209:9)
    at parse (/Users/chen/repo/cirru/parser.coffee/lib/parser.js:346:20)
    at Object.exports.parse (/Users/chen/repo/cirru/parser.coffee/lib/parser.js:24:33)
    at Object.exports.pare (/Users/chen/repo/cirru/parser.coffee/lib/parser.js:35:17)
    at test (/Users/chen/repo/cirru/parser.coffee/test.cirru:11:20)
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (/Users/chen/repo/cirru/parser.coffee/test.cirru:24:7)
    at Module._compile (internal/modules/cjs/loader.js:1256:30)
    at Object.<anonymous> (/Users/chen/repo/cirru/parser.coffee/node_modules/cirru-script/lib/command.js:90:14)
    at Module._compile (internal/modules/cjs/loader.js:1256:30)

@chenyong chenyong requested a review from a team August 19, 2020 07:42
@soyaine soyaine merged commit 9e3d3e3 into master Aug 19, 2020
@soyaine soyaine deleted the error-line branch August 19, 2020 07:49
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants