[Groonga-commit] droonga/fluent-plugin-droonga at e178ecd [master] Don't override #message

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Feb 14 12:47:41 JST 2014


Kouhei Sutou	2014-02-14 12:47:41 +0900 (Fri, 14 Feb 2014)

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

  Message:
    Don't override #message
    
    super in #initialize is used instead.

  Modified files:
    lib/droonga/error.rb

  Modified: lib/droonga/error.rb (+2 -5)
===================================================================
--- lib/droonga/error.rb    2014-02-14 12:47:11 +0900 (cc5222c)
+++ lib/droonga/error.rb    2014-02-14 12:47:41 +0900 (8f76bca)
@@ -24,13 +24,10 @@ module Droonga
 
     def initialize(errors=[])
       @errors = errors
-      super
-    end
-
-    def message
-      @errors.collect do |error|
+      message =****@error***** do |error|
         error.message
       end.sort.join("\n-----------------------\n")
+      super(message)
     end
 
     def empty?
-------------- next part --------------
HTML����������������������������...
Download 



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