From d133fa51ca9af5969b2659c8ea18f8762c6d816e Mon Sep 17 00:00:00 2001 From: aibou Date: Tue, 30 Jul 2019 11:45:47 +0900 Subject: [PATCH] Small fix for missing type --- lib/miam/template_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/miam/template_helper.rb b/lib/miam/template_helper.rb index fa3064d..40097f1 100644 --- a/lib/miam/template_helper.rb +++ b/lib/miam/template_helper.rb @@ -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