[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
@ -29,7 +29,7 @@ module ErrorHighlight
|
||||
|
||||
spot = ErrorHighlight.spot(node, **opts)
|
||||
|
||||
rescue Errno::ENOENT, SyntaxError
|
||||
rescue SystemCallError, SyntaxError
|
||||
end
|
||||
|
||||
if spot
|
||||
|
Loading…
x
Reference in New Issue
Block a user