diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2021-11-30 13:47:44 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-11-30 13:49:04 +0900 |
commit | dc46529b64edcd6b7f7eb61133d92ca591882cdf (patch) | |
tree | 4c273853d32588121e82ea15566269182256aacf /lib/error_highlight/core_ext.rb | |
parent | 3288f0d09e35a98d3569c79fad654e38eaeb7a9c (diff) | |
download | ruby-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
Diffstat (limited to 'lib/error_highlight/core_ext.rb')
-rw-r--r-- | lib/error_highlight/core_ext.rb | 2 |
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 |