Skip to content

Commit

Permalink
Merge pull request #226 from zenspider/zenspider/newline
Browse files Browse the repository at this point in the history
Remove leading newline from on_error exception messages.
  • Loading branch information
flavorjones committed Jul 19, 2023
2 parents 610aaf4 + 11f0d74 commit 79ad0ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/racc/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ def _racc_do_reduce(arg, act)
#
# If this method returns, parsers enter "error recovering mode".
def on_error(t, val, vstack)
raise ParseError, sprintf("\nparse error on value %s (%s)",
raise ParseError, sprintf("parse error on value %s (%s)",
val.inspect, token_to_str(t) || '?')
end

Expand Down

0 comments on commit 79ad0ef

Please sign in to comment.