ruby-changes:70313
From: Yusuke <ko1@a...>
Date: Sun, 19 Dec 2021 04:13:43 +0900 (JST)
Subject: [ruby-changes:70313] 52b1c76534 (master): Manually sync https://github.com/ruby/error_highlight/commit/d2140d795ad0a06398db81739201877d431755db
https://git.ruby-lang.org/ruby.git/commit/?id=52b1c76534 From 52b1c76534eb5610527be97e8c9e98e46513e48c Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Sun, 19 Dec 2021 04:13:14 +0900 Subject: Manually sync https://github.com/ruby/error_highlight/commit/d2140d795ad0a06398db81739201877d431755db --- lib/error_highlight/core_ext.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/error_highlight/core_ext.rb b/lib/error_highlight/core_ext.rb index 0bf1992f49e..d3a4dbacd64 100644 --- a/lib/error_highlight/core_ext.rb +++ b/lib/error_highlight/core_ext.rb @@ -29,7 +29,9 @@ module ErrorHighlight https://github.com/ruby/ruby/blob/trunk/lib/error_highlight/core_ext.rb#L29 spot = ErrorHighlight.spot(node, **opts) - rescue SystemCallError, SyntaxError, ArgumentError + rescue SyntaxError + rescue SystemCallError # file not found or something + rescue ArgumentError # eval'ed code end if spot -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/