HBASE-27726 Handling of ruby shell SyntaxError exceptions (#5147)
Co-authored-by: Rishabh Murarka <rmurarka@visa.com>
This commit is contained in:
parent
b0b03732d3
commit
912b6d18c0
|
@ -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