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

shows location of error in code when using cli (revised again) #73

Closed
wants to merge 10 commits into from

Conversation

kenirwin
Copy link
Contributor

@kenirwin kenirwin commented Apr 8, 2020

Closes #70

  • adds errorContext() function in cli
  • displays the text of the line containing the error
  • highlights the offending character in red
  • adds a line below the code using a caret ^ to show where the error occurred (more accessible for some users than colored highlighting)
  • updates the "invalid" test to account for new expected output
  • supports both file-based and inline cli inputs

@kenirwin kenirwin changed the title Caret shows location of error in code when using cli (revised again) Apr 8, 2020
@kenirwin
Copy link
Contributor Author

kenirwin commented Apr 8, 2020

once again, this tests fine on my machine but fails on travis :(

package.json Outdated Show resolved Hide resolved
@RyanZim RyanZim closed this in 366ed9e Apr 10, 2020
@RyanZim
Copy link
Owner

RyanZim commented Apr 10, 2020

Landed in 366ed9e.

@RyanZim
Copy link
Owner

RyanZim commented Apr 10, 2020

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.

show the offending line and character in context?
2 participants