summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2021-11-30 13:47:44 +0900
committergit <svn-admin@ruby-lang.org>2021-11-30 13:49:04 +0900
commitdc46529b64edcd6b7f7eb61133d92ca591882cdf (patch)
tree4c273853d32588121e82ea15566269182256aacf
parent3288f0d09e35a98d3569c79fad654e38eaeb7a9c (diff)
downloadruby-dc46529b64edcd6b7f7eb61133d92ca591882cdf.tar.gz
[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
-rw-r--r--lib/error_highlight/core_ext.rb2
1 files changed, 1 insertions, 1 deletions
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