From 9e72de2cfb502924882dcfe6ca22d7be1d1e2dc9 Mon Sep 17 00:00:00 2001 From: "David R. Jenni" Date: Sun, 5 Nov 2017 10:25:41 +0100 Subject: [PATCH] cmd/gorename: fix test failure formatting. Change-Id: Idbfb356225f4650446bffa80a43cec4679bcd507 Reviewed-on: https://go-review.googlesource.com/75976 Reviewed-by: Alan Donovan --- cmd/gorename/gorename_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/gorename/gorename_test.go b/cmd/gorename/gorename_test.go index 20dbd9e123..b778cb672b 100644 --- a/cmd/gorename/gorename_test.go +++ b/cmd/gorename/gorename_test.go @@ -370,7 +370,7 @@ func modifiedFiles(t *testing.T, dir string, packages map[string][]string) (resu file := filepath.Join(pkgDir, strconv.Itoa(i)+".go") // read file contents and compare to val if contents, err := ioutil.ReadFile(file); err != nil { - t.Fatal("File missing: %s", err) + t.Fatalf("File missing: %s", err) } else if string(contents) != val { results = append(results, strings.TrimPrefix(dir, file)) }