Navigation Menu

Skip to content

Commit

Permalink
Initialize StandardError only with single argument
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 28, 2015
1 parent 41323a0 commit a68c6e1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/droonga/fluent_message_receiver.rb
Expand Up @@ -26,15 +26,16 @@ class FluentMessageReceiver

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

Expand Down

0 comments on commit a68c6e1

Please sign in to comment.