1
0
Fork 0
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:
Yusuke Endoh 2021-11-30 13:47:44 +09:00 committed by git
parent 3288f0d09e
commit dc46529b64

View file

@ -29,7 +29,7 @@ module ErrorHighlight
spot = ErrorHighlight.spot(node, **opts)
rescue Errno::ENOENT, SyntaxError
rescue SystemCallError, SyntaxError
end
if spot