-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
480450b
to
101abfa
Compare
expect { subject }.to raise_error(Reader::ParseError, <<-E) | ||
[!] Data has an uneven number of hex digits | ||
# ------------------------------------------- | ||
> {key = <12 3>} |
There was a problem hiding this comment.
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>} |
There was a problem hiding this comment.
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>}
looks 10/10 |
85c462a
to
9212838
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Closes #5
\c @orta @dantoml