mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Manually sync d2140d795a
This commit is contained in:
parent
6a51c3e80c
commit
52b1c76534
1 changed files with 3 additions and 1 deletions
|
@ -29,7 +29,9 @@ module ErrorHighlight
|
|||
|
||||
spot = ErrorHighlight.spot(node, **opts)
|
||||
|
||||
rescue SystemCallError, SyntaxError, ArgumentError
|
||||
rescue SyntaxError
|
||||
rescue SystemCallError # file not found or something
|
||||
rescue ArgumentError # eval'ed code
|
||||
end
|
||||
|
||||
if spot
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue