shithub: hugo

Download patch

ref: 17fb752279c3017c5bc11ceb9e113a3159317d9d
parent: 72f14a820208b7f371a3bffa0713d44c118a9f17
author: Bjørn Erik Pedersen <[email protected]>
date: Mon Oct 12 17:34:15 EDT 2015

Correct number of args to Errorf

--- a/tpl/template_funcs_test.go
+++ b/tpl/template_funcs_test.go
@@ -338,7 +338,7 @@
 		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)