diff --git a/commands/undraft_test.go b/commands/undraft_test.go index 6ed172205..d302d31c5 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 {