Permalink
Browse files

More descriptive actor argument error for unwrappable object

  • Loading branch information...
1 parent 3a71856 commit 55bbbe3d13b55b74f4cbb4d97d843845b137d812 @jnunemaker committed Jan 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/flipper/types/actor.rb
@@ -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

0 comments on commit 55bbbe3

Please sign in to comment.