Skip to content

Commit

Permalink
HBASE-27726 Handling of ruby shell SyntaxError exceptions (apache#5147)
Browse files Browse the repository at this point in the history
Co-authored-by: Rishabh Murarka <rmurarka@visa.com>
(cherry picked from commit 912b6d1)
Change-Id: Ic0efc56fb1f78f7299da867f596056496f1d6655
  • Loading branch information
2 people authored and chrajeshbabu committed Apr 4, 2023
1 parent 7c2bc60 commit 7ea1123
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 7ea1123

Please sign in to comment.