[前][次][番号順一覧][スレッド一覧]

ruby-changes:69986

From: Yusuke <ko1@a...>
Date: Tue, 30 Nov 2021 13:49:13 +0900 (JST)
Subject: [ruby-changes:69986] dc46529b64 (master): [ruby/error_highlight] Ignore all syscall errors

https://git.ruby-lang.org/ruby.git/commit/?id=dc46529b64

From dc46529b64edcd6b7f7eb61133d92ca591882cdf Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
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 1ae180aeac8..ebb6788b020 100644
--- a/lib/error_highlight/core_ext.rb
+++ b/lib/error_highlight/core_ext.rb
@@ -29,7 +29,7 @@ module ErrorHighlight https://github.com/ruby/ruby/blob/trunk/lib/error_highlight/core_ext.rb#L29
 
         spot = ErrorHighlight.spot(node, **opts)
 
-      rescue Errno::ENOENT, SyntaxError
+      rescue SystemCallError, SyntaxError
       end
 
       if spot
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]