From 52b1c76534eb5610527be97e8c9e98e46513e48c Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Sun, 19 Dec 2021 04:13:14 +0900 Subject: [PATCH] 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 0bf1992f49..d3a4dbacd6 100644 --- a/lib/error_highlight/core_ext.rb +++ b/lib/error_highlight/core_ext.rb @@ -29,7 +29,9 @@ module ErrorHighlight 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