lib/flipper/errors.rb in flipper-0.27.1 vs lib/flipper/errors.rb in flipper-0.28.0
- old
+ new
@@ -1,12 +1,12 @@
module Flipper
# Top level error that all other errors inherit from.
class Error < StandardError; end
- # Raised when gate can not be found for a thing.
+ # Raised when gate can not be found for an actor.
class GateNotFound < Error
- def initialize(thing)
- super "Could not find gate for #{thing.inspect}"
+ def initialize(actor)
+ super "Could not find gate for #{actor.inspect}"
end
end
# Raised when attempting to declare a group name that has already been used.
class DuplicateGroup < Error; end