diff options
-rw-r--r-- | lib/error_highlight/core_ext.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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 |