Skip to content

Commit

Permalink
Small fix for missing type
Browse files Browse the repository at this point in the history
  • Loading branch information
aibou committed Jul 30, 2019
1 parent 7adcb84 commit d133fa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/miam/template_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ def context
end

def required(*args)
missing_args = args.map(&:to_s) - @context.keys
missing_args = args.map(&:to_s) - @context.keys.map(&:to_s)
unless missing_args.empty?
ex = ArgumentError.new("Missing arguments: #{missing_args.join(", ")} in '#{@template_name}'")
ex = ArgumentError.new("Missing arguments: [#{missing_args.join(", ")}] in template: '#{@template_name}'")
ex.set_backtrace(@caller)
raise ex
end
Expand Down

0 comments on commit d133fa5

Please sign in to comment.