[Groonga-commit] droonga/fluent-plugin-droonga at dbb6498 [master] Return internal error as 500

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Feb 6 19:30:29 JST 2014


YUKI Hiroshi	2014-02-06 19:30:29 +0900 (Thu, 06 Feb 2014)

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

  Message:
    Return internal error as 500

  Modified files:
    lib/droonga/dispatcher.rb

  Modified: lib/droonga/dispatcher.rb (+5 -0)
===================================================================
--- lib/droonga/dispatcher.rb    2014-02-06 19:24:25 +0900 (9b0f0c4)
+++ lib/droonga/dispatcher.rb    2014-02-06 19:30:29 +0900 (08c4577)
@@ -93,6 +93,11 @@ module Droonga
         rescue MessageProcessingError => error
           reply("statusCode" => error.status_code,
                 "body"       => error.response_body)
+        rescue => error
+          formatted_error = MessageProcessingError.new("Unknown internal error")
+          reply("statusCode" => formatted_error.status_code,
+                "body"       => formatted_error.response_body)
+          raise error
         end
       end
     end
-------------- next part --------------
HTML����������������������������...
Download 



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