mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Correct number of args to Errorf
This commit is contained in:
parent
72f14a8202
commit
17fb752279
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue