hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-19755 Error message for non-existent namespace is inaccurate
Date Thu, 11 Jan 2018 04:19:50 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 8bf6adbe7 -> 62a818894


HBASE-19755 Error message for non-existent namespace is inaccurate

Signed-off-by: tedyu <yuzhihong@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/62a81889
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/62a81889
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/62a81889

Branch: refs/heads/master
Commit: 62a8188946e50fbddaebc99d2f60980ebea1012e
Parents: 8bf6adb
Author: Sergey Soldatov <ssa@apache.org>
Authored: Wed Jan 10 15:26:21 2018 -0800
Committer: tedyu <yuzhihong@gmail.com>
Committed: Wed Jan 10 20:19:40 2018 -0800

----------------------------------------------------------------------
 hbase-shell/src/main/ruby/shell/commands.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/62a81889/hbase-shell/src/main/ruby/shell/commands.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/shell/commands.rb b/hbase-shell/src/main/ruby/shell/commands.rb
index 94b5667..f17a7f6 100644
--- a/hbase-shell/src/main/ruby/shell/commands.rb
+++ b/hbase-shell/src/main/ruby/shell/commands.rb
@@ -117,7 +117,7 @@ module Shell
           raise "Unknown region #{args.first}!"
         end
         if cause.is_a?(org.apache.hadoop.hbase.NamespaceNotFoundException)
-          raise "Unknown namespace #{args.first}!"
+          raise "Unknown namespace #{args.first.split(':')[0]}!"
         end
         if cause.is_a?(org.apache.hadoop.hbase.snapshot.SnapshotDoesNotExistException)
           raise "Unknown snapshot #{args.first}!"


Mime
View raw message