mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/error_highlight] Ignore all syscall errors
At least, Error::ENOTSUP may be raised on some extreme environments https://github.com/ruby/error_highlight/commit/2787983ff7
This commit is contained in:
parent
3288f0d09e
commit
dc46529b64
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ module ErrorHighlight
|
|||
|
||||
spot = ErrorHighlight.spot(node, **opts)
|
||||
|
||||
rescue Errno::ENOENT, SyntaxError
|
||||
rescue SystemCallError, SyntaxError
|
||||
end
|
||||
|
||||
if spot
|
||||
|
|
Loading…
Add table
Reference in a new issue