We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
headius
Learn more about funding links in repositories.
Report abuse
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
Return line number the way Ruby does:
$ ruby --version ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin13] $ echo "/1(/" | ruby -:1: end pattern with unmatched parenthesis: /1(/
Does not follow the general SyntaxError fashion with a line number for Regex parse errors:
$ jruby.exe --version jruby 9.1.2.0 (2.3.0) 2016-05-26 7357c8f Java HotSpot(TM) 64-Bit Server VM 25.51-b03 on 1.8.0_51-b16 [mswin32-x86_64] $ echo "/1(/" | jruby.exe SyntaxError: (RegexpError) end pattern with unmatched parenthesis: /1(/
Compare to
$ echo "(" | jruby.exe SyntaxError: -:1: syntax error, unexpected end-of-file
We parse user provided Ruby code via eval and extract line numbers from errors to report back.
The text was updated successfully, but these errors were encountered:
41e4b34
No branches or pull requests
Expected Behavior
Return line number the way Ruby does:
Actual Behavior
Does not follow the general SyntaxError fashion with a line number for Regex parse errors:
Compare to
Reasoning
We parse user provided Ruby code via eval and extract line numbers from errors to report back.
The text was updated successfully, but these errors were encountered: