From: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> Date: Sat, 11 Mar 2017 18:07:32 +0000 (+0100) Subject: commands: t.Error => t.Errorf X-Git-Tag: v0.20~148 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5f443bd4;p=brevno-suite%2Fhugo commands: t.Error => t.Errorf --- diff --git a/commands/undraft_test.go b/commands/undraft_test.go index 6ed17220..d302d31c 100644 --- a/commands/undraft_test.go +++ b/commands/undraft_test.go @@ -52,7 +52,7 @@ func TestUndraftContent(t *testing.T) { res, err := undraftContent(p) if test.expectedErr != "" { if err == nil { - t.Error("[%d] Expected error, got none", i) + t.Errorf("[%d] Expected error, got none", i) continue } if err.Error() != test.expectedErr {