Skip to content

Commit 912b6d1

Browse files
rishabhmurarka7Rishabh Murarka
authored andcommitted
HBASE-27726 Handling of ruby shell SyntaxError exceptions (#5147)
Co-authored-by: Rishabh Murarka <[email protected]>
1 parent b0b0373 commit 912b6d1

File tree

1 file changed

+2
-0
lines changed
  • hbase-shell/src/main/ruby/irb

1 file changed

+2
-0
lines changed

hbase-shell/src/main/ruby/irb/hirb.rb

+2
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ def eval_input
118118
rescue Interrupt => exc
119119
rescue SystemExit, SignalException
120120
raise
121+
rescue SyntaxError => exc
122+
raise exc unless @interactive
121123
rescue NameError => exc
122124
raise exc unless @interactive
123125
# HBASE-26880: Ignore NameError to prevent exiting Shell on mistyped commands.

0 commit comments

Comments
 (0)