diff --git a/src/cmd/gofmt/gofmt.go b/src/cmd/gofmt/gofmt.go index dc62d753ae..11d3cca183 100644 --- a/src/cmd/gofmt/gofmt.go +++ b/src/cmd/gofmt/gofmt.go @@ -80,7 +80,7 @@ func main() { src, err := io.ReadFile(filename); if err != nil { - fmt.Fprintf(os.Stderr, "%s: %v\n", filename, err); + fmt.Fprintf(os.Stderr, "%v\n", err); os.Exit(1); }