[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
1 changed files with 1 additions and 1 deletions

View File

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