[Groonga-commit] droonga/fluent-plugin-droonga at c2290ec [master] Report errors for missing required parameters

アーカイブの一覧に戻る

YUKI Hiroshi null+****@clear*****
Wed Feb 12 18:46:20 JST 2014


YUKI Hiroshi	2014-02-12 18:46:20 +0900 (Wed, 12 Feb 2014)

  New Revision: c2290ec27be3dd984ba484a3f592ee19db03bbb1
  https://github.com/droonga/fluent-plugin-droonga/commit/c2290ec27be3dd984ba484a3f592ee19db03bbb1

  Message:
    Report errors for missing required parameters

  Modified files:
    lib/droonga/catalog/base.rb

  Modified: lib/droonga/catalog/base.rb (+2 -0)
===================================================================
--- lib/droonga/catalog/base.rb    2014-02-12 18:43:56 +0900 (5a493cb)
+++ lib/droonga/catalog/base.rb    2014-02-12 18:46:20 +0900 (0bbb02b)
@@ -299,11 +299,13 @@ module Droonga
       end
 
       def validate_date_range(value, name)
+        raise MissingRequiredParameter.new(name, @path) unless value
         return if value == "infinity"
         raise UnsupportedValue.new(name, value, @path)
       end
 
       def validate_partition_key(value, name)
+        raise MissingRequiredParameter.new(name, @path) unless value
         validate_parameter_type(String, value, name)
         return if value == "_key"
         raise UnsupportedValue.new(name, value, @path)
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る