You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ra...@apache.org on 2023/03/29 09:03:36 UTC

[hbase] branch branch-2.4 updated: HBASE-27726 Handling of ruby shell SyntaxError exceptions (#5147)

This is an automated email from the ASF dual-hosted git repository.

rajeshbabu pushed a commit to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.4 by this push:
     new 912b6d18c03 HBASE-27726 Handling of ruby shell SyntaxError exceptions (#5147)
912b6d18c03 is described below

commit 912b6d18c03ef631bcaaaa5d7d12ef11213aad55
Author: Rishabh Murarka <ri...@gmail.com>
AuthorDate: Tue Mar 28 16:45:47 2023 +0530

    HBASE-27726 Handling of ruby shell SyntaxError exceptions (#5147)
    
    Co-authored-by: Rishabh Murarka <rm...@visa.com>
---
 hbase-shell/src/main/ruby/irb/hirb.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hbase-shell/src/main/ruby/irb/hirb.rb b/hbase-shell/src/main/ruby/irb/hirb.rb
index 7fc40912489..713cb848c76 100644
--- a/hbase-shell/src/main/ruby/irb/hirb.rb
+++ b/hbase-shell/src/main/ruby/irb/hirb.rb
@@ -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.