From dc46529b64edcd6b7f7eb61133d92ca591882cdf Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Tue, 30 Nov 2021 13:47:44 +0900 Subject: [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 --- lib/error_highlight/core_ext.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/error_highlight/core_ext.rb b/lib/error_highlight/core_ext.rb index 1ae180aeac..ebb6788b02 100644 --- a/lib/error_highlight/core_ext.rb +++ b/lib/error_highlight/core_ext.rb @@ -29,7 +29,7 @@ module ErrorHighlight spot = ErrorHighlight.spot(node, **opts) - rescue Errno::ENOENT, SyntaxError + rescue SystemCallError, SyntaxError end if spot -- cgit v1.2.1