hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 17fb752279c3017c5bc11ceb9e113a3159317d9d
parent 72f14a820208b7f371a3bffa0713d44c118a9f17
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Mon, 12 Oct 2015 21:34:15 +0200

Correct number of args to Errorf

Diffstat:
Mtpl/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
@@ -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)