commands: t.Error => t.Errorf
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 11 Mar 2017 18:07:32 +0000 (19:07 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 11 Mar 2017 18:07:32 +0000 (19:07 +0100)
commands/undraft_test.go

index 6ed172205dc2860a7517ebf423bf79f2c2257237..d302d31c50c81d320da129103570e5efc80315b9 100644 (file)
@@ -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 {