[Groonga-commit] droonga/droonga-engine at 9697b29 [master] Use super class's "message" method

Zurück zum Archiv-Index

YUKI Hiroshi null+****@clear*****
Thu Dec 11 16:25:09 JST 2014


YUKI Hiroshi	2014-12-11 16:25:09 +0900 (Thu, 11 Dec 2014)

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

  Merged e0f9f34: Merge pull request #30 from piroor/replicas-in-a-branch

  Message:
    Use super class's "message" method

  Modified files:
    lib/droonga/catalog/volume.rb

  Modified: lib/droonga/catalog/volume.rb (+2 -7)
===================================================================
--- lib/droonga/catalog/volume.rb    2014-12-11 16:23:01 +0900 (0979bcf)
+++ lib/droonga/catalog/volume.rb    2014-12-11 16:25:09 +0900 (11271a5)
@@ -21,14 +21,9 @@ module Droonga
   module Catalog
     module Volume
       class UnknownTypeVolume < ArgumentError
-        attr_reader :raw_volume
-
         def initialize(raw_volume)
-          @raw_volume = raw_volume
-        end
-
-        def message
-          @raw_volume.inspect
+          super("volume must have one of 'address', 'slices' or 'replicas': " +
+                  "#{raw_volume.inspect}")
         end
       end
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index