From: Bjørn Erik Pedersen Date: Mon, 12 Oct 2015 19:34:15 +0000 (+0200) Subject: Correct number of args to Errorf X-Git-Tag: v0.15~118 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=17fb752279c3017c5bc11ceb9e113a3159317d9d;p=brevno-suite%2Fhugo Correct number of args to Errorf --- diff --git a/tpl/template_funcs_test.go b/tpl/template_funcs_test.go index 8ab68d8f..6afb5eee 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)