[Groonga-commit] droonga/droonga-engine at a68c6e1 [master] Initialize StandardError only with single argument

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Apr 28 16:46:23 JST 2015


YUKI Hiroshi	2015-04-28 16:46:23 +0900 (Tue, 28 Apr 2015)

  New Revision: a68c6e1a5eaadc610ff13ca495640645122393b6
  https://github.com/droonga/droonga-engine/commit/a68c6e1a5eaadc610ff13ca495640645122393b6

  Message:
    Initialize StandardError only with single argument

  Modified files:
    lib/droonga/fluent_message_receiver.rb

  Modified: lib/droonga/fluent_message_receiver.rb (+5 -4)
===================================================================
--- lib/droonga/fluent_message_receiver.rb    2015-04-28 16:34:59 +0900 (42464ed)
+++ lib/droonga/fluent_message_receiver.rb    2015-04-28 16:46:23 +0900 (8ac135e)
@@ -26,15 +26,16 @@ module Droonga
 
     class InvalidObject < StandardError
       def initialize(object)
-        message = "no valid tag information"
-        super(message, :object => object)
+        message = "no valid tag information: #{object.inspect}"
+        super(message)
       end
     end
 
     class UnknownTypeEntries < StandardError
       def initialize(object)
-        message = "unknown type message: couldn't detect entries"
-        super(message, :object => object)
+        message = "unknown type message: couldn't detect entries: " +
+                    "#{object.inspect}"
+        super(message)
       end
     end
 
-------------- next part --------------
HTML����������������������������...
Download 



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