From 17fb752279c3017c5bc11ceb9e113a3159317d9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 12 Oct 2015 21:34:15 +0200 Subject: [PATCH] Correct number of args to Errorf --- tpl/template_funcs_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpl/template_funcs_test.go b/tpl/template_funcs_test.go index 8ab68d8f1..6afb5eee4 100644 --- a/tpl/template_funcs_test.go +++ b/tpl/template_funcs_test.go @@ -338,7 +338,7 @@ func TestDictionary(t *testing.T) { r, e := Dictionary(this.v1...) if (this.expecterr && e == nil) || (!this.expecterr && e != nil) { - t.Errorf("[%d] got an unexpected error", i, e, this.expecterr) + t.Errorf("[%d] got an unexpected error: %s", i, e) } else if !this.expecterr { if !reflect.DeepEqual(r, this.expectedValue) { t.Errorf("[%d] got %v but expected %v", i, r, this.expectedValue)