Skip to content

Commit

Permalink
More descriptive actor argument error for unwrappable object
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Jan 14, 2013
1 parent 3a71856 commit 55bbbe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/flipper/types/actor.rb
Expand Up @@ -23,7 +23,7 @@ def initialize(thing)
end

unless thing.respond_to?(:flipper_id)
raise ArgumentError.new("thing must respond to :flipper_id")
raise ArgumentError.new("#{thing.inspect} must respond to flipper_id, but does not")
end

@thing = thing
Expand Down

0 comments on commit 55bbbe3

Please sign in to comment.