Skip to content

Commit

Permalink
Correct number of args to Errorf
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Oct 12, 2015
1 parent 72f14a8 commit 17fb752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tpl/template_funcs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 17fb752

Please sign in to comment.