[Groonga-commit] droonga/fluent-plugin-droonga at 8efbc06 [master] Return UnknownColumn error correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Dec 26 17:37:42 JST 2013


YUKI Hiroshi	2013-12-26 17:37:42 +0900 (Thu, 26 Dec 2013)

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

  Message:
    Return UnknownColumn error correctly

  Modified files:
    lib/droonga/plugin/handler/add.rb

  Modified: lib/droonga/plugin/handler/add.rb (+3 -0)
===================================================================
--- lib/droonga/plugin/handler/add.rb    2013-12-26 17:35:55 +0900 (8cfc2ad)
+++ lib/droonga/plugin/handler/add.rb    2013-12-26 17:37:42 +0900 (704eba9)
@@ -96,6 +96,9 @@ module Droonga
         rescue ArgumentError => error
           record.delete if record.added?
           raise InvalidValue.new(column, value, request)
+        rescue Groonga::NoSuchColumn => error
+          record.delete if record.added?
+          raise UnknownColumn.new(column, table, request)
         end
       end
     end
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index