Skip to content

Commit

Permalink
HBASE-27726 Handling of ruby shell SyntaxError exceptions (#5147)
Browse files Browse the repository at this point in the history
Co-authored-by: Rishabh Murarka <[email protected]>
  • Loading branch information
rishabhmurarka7 and Rishabh Murarka authored Mar 28, 2023
1 parent f5437b9 commit efb360d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hbase-shell/src/main/ruby/irb/hirb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ def eval_input
rescue Interrupt => exc
rescue SystemExit, SignalException
raise
rescue SyntaxError => exc
raise exc unless @interactive
rescue NameError => exc
raise exc unless @interactive
# HBASE-26880: Ignore NameError to prevent exiting Shell on mistyped commands.
Expand Down

0 comments on commit efb360d

Please sign in to comment.