HBASE-27726 Handling of ruby shell SyntaxError exceptions (#5147)
Co-authored-by: Rishabh Murarka <rmurarka@visa.com>
This commit is contained in:
parent
f5437b9ceb
commit
efb360d33f
|
@ -118,6 +118,8 @@ module IRB
|
|||
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.
|
||||
|
|
Loading…
Reference in New Issue