Skip to content

Commit 2787983

Browse files
committed
Ignore all syscall errors
At least, Error::ENOTSUP may be raised on some extreme environments
1 parent 9fbaa8a commit 2787983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/error_highlight/core_ext.rb

Lines changed: 1 addition & 1 deletion
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)