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

[Reader] Add context to parse errors #7

Merged
merged 4 commits into from
Nov 2, 2016
Merged

Conversation

segiddins
Copy link
Member

@segiddins segiddins commented Oct 29, 2016

Closes #5

  • More tests
  • CHANGELOG

\c @orta @dantoml

@segiddins segiddins force-pushed the seg-parse-error-context branch from 480450b to 101abfa Compare October 29, 2016 15:58
expect { subject }.to raise_error(Reader::ParseError, <<-E)
[!] Data has an uneven number of hex digits
# -------------------------------------------
> {key = <12 3>}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

expect { subject }.to raise_error(Reader::ParseError, <<-E)
[!] Data has an uneven number of hex digits
# -------------------------------------------
> {key = <12 3>}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be nice if this was "#{line_number}> #{line_content}" i.e 1> {key = <12 3>}

@orta
Copy link
Member

orta commented Oct 30, 2016

looks 10/10

@segiddins segiddins force-pushed the seg-parse-error-context branch from 85c462a to 9212838 Compare November 1, 2016 18:27
Copy link
Member

@endocrimes endocrimes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@segiddins segiddins merged commit 46d604e into master Nov 2, 2016
@segiddins segiddins deleted the seg-parse-error-context branch November 2, 2016 18:07
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.

3 participants