hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mberto...@apache.org
Subject [4/4] hbase git commit: HBASE-13080 hbase shell message containing extra quote at the end of error message
Date Mon, 23 Feb 2015 09:45:52 GMT
HBASE-13080 hbase shell message containing extra quote at the end of error message

Signed-off-by: Matteo Bertozzi <matteo.bertozzi@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 <abhishek.kr@huawei.com>
Authored: Sun Feb 22 22:56:47 2015 +0530
Committer: Matteo Bertozzi <matteo.bertozzi@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)
 


Mime
View raw message