lib/dry/effects/errors.rb in dry-effects-0.1.5 vs lib/dry/effects/errors.rb in dry-effects-0.2.0

- old
+ new

@@ -18,11 +18,11 @@ @effect = effect super( Undefined.default(message) { "Effect #{effect.inspect} not handled. "\ - 'Effects must be wrapped with corresponding handlers' + "Effects must be wrapped with corresponding handlers" } ) end end @@ -30,11 +30,11 @@ # # @api private class MissingStateError < UnhandledEffectError def initialize(effect) message = "Value of +#{effect.scope}+ is not set, "\ - 'you need to provide value with an effect handler' + "you need to provide value with an effect handler" super(effect, message) end end @@ -44,11 +44,11 @@ class UndefinedStateError < RuntimeError include Error def initialize(effect) message = "+#{effect.scope}+ is not defined, you need to assign it first "\ - 'by using a writer, passing initial value to the handler, or '\ - 'providing a fallback value' + "by using a writer, passing initial value to the handler, or "\ + "providing a fallback value" super(message) end end