Skip to content

Commit c060bbd

Browse files
committed
Catch RubyParser exceptions
Depending on what causes RubyParser to fail, the exception could be from Racc or from RubyParser, so we should catch these as well.
1 parent 182ecf2 commit c060bbd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/cc/engine/analyzers/analyzer_base.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class Base
88
::CC::Engine::Analyzers::ParserError,
99
::Errno::ENOENT,
1010
::Racc::ParseError,
11+
::RubyParser::SyntaxError,
1112
]
1213

1314
def initialize(engine_config:)

0 commit comments

Comments
 (0)