Skip to content

Commit dc46529

Browse files
mamematzbot
authored andcommitted
[ruby/error_highlight] Ignore all syscall errors
At least, Error::ENOTSUP may be raised on some extreme environments ruby/error_highlight@2787983ff7
1 parent 3288f0d commit dc46529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/error_highlight/core_ext.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def to_s
2929

3030
spot = ErrorHighlight.spot(node, **opts)
3131

32-
rescue Errno::ENOENT, SyntaxError
32+
rescue SystemCallError, SyntaxError
3333
end
3434

3535
if spot

0 commit comments

Comments
 (0)