[Groonga-commit] droonga/fluent-plugin-droonga at 5493b59 [master] Simplify

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Feb 17 19:09:05 JST 2014


Kouhei Sutou	2014-02-17 19:09:05 +0900 (Mon, 17 Feb 2014)

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

  Message:
    Simplify

  Modified files:
    lib/droonga/message_processing_error.rb

  Modified: lib/droonga/message_processing_error.rb (+3 -3)
===================================================================
--- lib/droonga/message_processing_error.rb    2014-02-17 18:54:52 +0900 (cf3f5d1)
+++ lib/droonga/message_processing_error.rb    2014-02-17 19:09:05 +0900 (e8ae010)
@@ -20,11 +20,11 @@ module Droonga
   class MessageProcessingError < Error
     STATUS_CODE = StatusCode::INTERNAL_ERROR
 
-    attr_reader :message, :detail
+    attr_reader :detail
 
     def initialize(message, detail=nil)
-      @message = message
       @detail = detail
+      super(message)
     end
 
     def name
@@ -38,7 +38,7 @@ module Droonga
     def response_body
       body = {
         "name"    => name,
-        "message" => @message,
+        "message" => message,
       }
       body["detail"] = @detail unles****@detai*****?
       body
-------------- next part --------------
HTML����������������������������...
Descargar 



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