lib/dry/schema/message_compiler.rb in dry-schema-1.3.4 vs lib/dry/schema/message_compiler.rb in dry-schema-1.4.0

- old
+ new

@@ -128,10 +128,11 @@ options = opts.dup.update( path: path.last, **tokens, **lookup_options(arg_vals: arg_vals, input: input) ).to_h - template, meta = messages[predicate, options] || raise(MissingMessageError, path) + template, meta = messages[predicate, options] || + raise(MissingMessageError.new(path, messages.looked_up_paths(predicate, options))) text = message_text(template, tokens, options) message_type(options).new( text: text, path: path, predicate: predicate, args: arg_vals, input: input, meta: meta