[Groonga-commit] droonga/fluent-plugin-droonga at 399551c [master] Support errors

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Feb 28 15:21:04 JST 2014


Kouhei Sutou	2014-02-28 15:21:04 +0900 (Fri, 28 Feb 2014)

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

  Message:
    Support errors

  Modified files:
    lib/droonga/session.rb

  Modified: lib/droonga/session.rb (+3 -1)
===================================================================
--- lib/droonga/session.rb    2014-02-28 14:53:57 +0900 (d49be91)
+++ lib/droonga/session.rb    2014-02-28 15:21:04 +0900 (abbd6a1)
@@ -64,7 +64,9 @@ module Droonga
         if post
           # XXX: It is just a workaround.
           # Remove me when super step is introduced.
-          if command == "search_gather"
+          if result["errors"]
+            reply_body = result
+          elsif command == "search_gather"
             reply_body = result
           else
             reply_body = result["result"]
-------------- next part --------------
HTML����������������������������...
Download 



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