From a388bae5696af150de3317e451444b0631b910f5 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Fri, 16 Mar 2012 18:46:53 +0000 Subject: [PATCH] HBASE-5581 Creating a table with invalid syntax does not give an error message when it fails git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1301688 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/ruby/hbase/admin.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/ruby/hbase/admin.rb b/src/main/ruby/hbase/admin.rb index 601e7e12764..7f0d6d7b5d7 100644 --- a/src/main/ruby/hbase/admin.rb +++ b/src/main/ruby/hbase/admin.rb @@ -200,6 +200,7 @@ module Hbase idx = idx + 1 end elsif arg.kind_of?(Hash) and (arg.has_key?(NUMREGIONS) or arg.has_key?(SPLITALGO)) + raise(ArgumentError, "Column family configuration should be specified in a separate clause") if arg.has_key?(NAME) raise(ArgumentError, "Number of regions must be specified") unless arg.has_key?(NUMREGIONS) raise(ArgumentError, "Split algorithm must be specified") unless arg.has_key?(SPLITALGO) raise(ArgumentError, "Number of regions must be geter than 1") unless arg[NUMREGIONS] > 1