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:50 UTC
[2/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/f6730140
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/f6730140
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/f6730140
Branch: refs/heads/branch-1
Commit: f67301403d503aa48ec29b11ca18c6714b51ab30
Parents: 28f4b8d
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:30:34 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/f6730140/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 445a390..f8ab36e 100644
--- a/hbase-shell/src/main/ruby/hbase/admin.rb
+++ b/hbase-shell/src/main/ruby/hbase/admin.rb
@@ -168,7 +168,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
#----------------------------------------------------------------------------------------------
@@ -181,7 +181,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(org.apache.hadoop.hbase.TableName.valueOf(table_name))
end
@@ -372,7 +372,7 @@ module Hbase
# Truncates table (deletes all records by recreating the table)
def truncate(table_name, conf = @conf)
table_description = @admin.getTableDescriptor(TableName.valueOf(table_name))
- 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)