lib/flipper/errors.rb in flipper-0.20.4 vs lib/flipper/errors.rb in flipper-0.21.0.rc1

- old
+ new

@@ -14,12 +14,11 @@ # Raised when default instance not configured but there is an attempt to # use it. class DefaultNotSet < Flipper::Error def initialize(message = nil) - default = "Default flipper instance not configured. See " \ - "Flipper.configure for how to configure the default instance." - super(message || default) + warn "Flipper::DefaultNotSet is deprecated and will be removed in 1.0" + super end end # Raised when an invalid value is set to a configuration property class InvalidConfigurationValue < Flipper::Error