HBASE-19755 Error message for non-existent namespace is inaccurate Signed-off-by: tedyu <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/0885fe16 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/0885fe16 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/0885fe16 Branch: refs/heads/HBASE-19397-branch-2 Commit: 0885fe161a3032c8cfbeb7a79b9574caf93fb930 Parents: 98e56ae Author: Sergey Soldatov <[email protected]> Authored: Wed Jan 10 15:26:21 2018 -0800 Committer: tedyu <[email protected]> Committed: Wed Jan 10 20:20:15 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/0885fe16/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}!"
