From 62a8188946e50fbddaebc99d2f60980ebea1012e Mon Sep 17 00:00:00 2001 From: Sergey Soldatov Date: Wed, 10 Jan 2018 15:26:21 -0800 Subject: [PATCH] HBASE-19755 Error message for non-existent namespace is inaccurate Signed-off-by: tedyu --- hbase-shell/src/main/ruby/shell/commands.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-shell/src/main/ruby/shell/commands.rb b/hbase-shell/src/main/ruby/shell/commands.rb index 94b5667395c..f17a7f63481 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}!"