[Groonga-commit] droonga/fluent-plugin-droonga at 903ed89 [master] Rescue internal error correctly

アーカイブの一覧に戻る

YUKI Hiroshi null+****@clear*****
Thu Dec 26 15:43:08 JST 2013


YUKI Hiroshi	2013-12-26 15:43:08 +0900 (Thu, 26 Dec 2013)

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

  Message:
    Rescue internal error correctly

  Modified files:
    lib/droonga/dispatcher.rb

  Modified: lib/droonga/dispatcher.rb (+2 -2)
===================================================================
--- lib/droonga/dispatcher.rb    2013-12-26 15:41:46 +0900 (6eaaa96)
+++ lib/droonga/dispatcher.rb    2013-12-26 15:43:08 +0900 (17907c3)
@@ -90,8 +90,6 @@ module Droonga
         begin
           assert_valid_message
           process_input_message(message)
-        rescue Droonga::Pluggable::UnknownPlugin => error
-          raise UnknownCommand.new(error.command, message["dataset"])
         rescue MessageProcessingError => error
           reply("statusCode" => error.status_code,
                 "body"       => error.response_body)
@@ -213,6 +211,8 @@ module Droonga
     def process_input_message(message)
       adapted_message = @input_adapter.adapt(message)
       @distributor.process(adapted_message["type"], adapted_message)
+    rescue Droonga::Pluggable::UnknownPlugin => error
+      raise UnknownCommand.new(error.command, message["dataset"])
     end
 
     def assert_valid_message
-------------- next part --------------
HTML����������������������������...
ダウンロード 



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