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

Signed-off-by: tedyu <yuzhihong@gmail.com>
This commit is contained in:
Sergey Soldatov 2018-01-10 15:26:21 -08:00 committed by tedyu
parent 98e56ae4c6
commit 0885fe161a
1 changed files with 1 additions and 1 deletions

View File

@ -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}!"