You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by mb...@apache.org on 2015/02/23 10:45:52 UTC
[4/4] hbase git commit: HBASE-13080 hbase shell message containing
extra quote at the end of error message
HBASE-13080 hbase shell message containing extra quote at the end of error message
Signed-off-by: Matteo Bertozzi <ma...@cloudera.com>
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/15b6df53
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/15b6df53
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/15b6df53
Branch: refs/heads/0.98
Commit: 15b6df53d92ee79d7d9aa0adb85fba6aa7cab933
Parents: 137d5e6
Author: Abhishek Kumar <ab...@huawei.com>
Authored: Sun Feb 22 22:56:47 2015 +0530
Committer: Matteo Bertozzi <ma...@cloudera.com>
Committed: Mon Feb 23 10:36:14 2015 +0100
----------------------------------------------------------------------
hbase-shell/src/main/ruby/hbase/admin.rb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/15b6df53/hbase-shell/src/main/ruby/hbase/admin.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/hbase/admin.rb b/hbase-shell/src/main/ruby/hbase/admin.rb
index 4964836..3dfe865 100644
--- a/hbase-shell/src/main/ruby/hbase/admin.rb
+++ b/hbase-shell/src/main/ruby/hbase/admin.rb
@@ -161,7 +161,7 @@ module Hbase
#---------------------------------------------------------------------------------------------
# Throw exception if table doesn't exist
def tableExists(table_name)
- raise ArgumentError, "Table #{table_name} does not exist.'" unless exists?(table_name)
+ raise ArgumentError, "Table #{table_name} does not exist." unless exists?(table_name)
end
#----------------------------------------------------------------------------------------------
@@ -174,7 +174,7 @@ module Hbase
# Drops a table
def drop(table_name)
tableExists(table_name)
- raise ArgumentError, "Table #{table_name} is enabled. Disable it first.'" if enabled?(table_name)
+ raise ArgumentError, "Table #{table_name} is enabled. Disable it first." if enabled?(table_name)
@admin.deleteTable(table_name)
end
@@ -354,7 +354,7 @@ module Hbase
def truncate(table_name, conf = @conf)
h_table = org.apache.hadoop.hbase.client.HTable.new(conf, table_name)
table_description = h_table.getTableDescriptor()
- raise ArgumentError, "Table #{table_name} is not enabled. Enable it first.'" unless enabled?(table_name)
+ raise ArgumentError, "Table #{table_name} is not enabled. Enable it first." unless enabled?(table_name)
yield 'Disabling table...' if block_given?
@admin.disableTable(table_name)