From: Ian Lance Taylor Date: Wed, 4 Jan 2017 18:13:18 +0000 (-0800) Subject: testing: add missing newlines to error messages X-Git-Tag: go1.8rc1~34 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7fb16406139e934d84f7ec66ba440a772747270a;p=gostls13.git testing: add missing newlines to error messages No test because in practice these errors never occur. Change-Id: I11c77893ae931fc621c98920cba656790d18ed93 Reviewed-on: https://go-review.googlesource.com/34811 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- diff --git a/src/testing/testing.go b/src/testing/testing.go index 8fb6d8373e..c972b2737f 100644 --- a/src/testing/testing.go +++ b/src/testing/testing.go @@ -895,11 +895,11 @@ func (m *M) before() { if *cpuProfile != "" { f, err := os.Create(toOutputDir(*cpuProfile)) if err != nil { - fmt.Fprintf(os.Stderr, "testing: %s", err) + fmt.Fprintf(os.Stderr, "testing: %s\n", err) return } if err := m.deps.StartCPUProfile(f); err != nil { - fmt.Fprintf(os.Stderr, "testing: can't start cpu profile: %s", err) + fmt.Fprintf(os.Stderr, "testing: can't start cpu profile: %s\n", err) f.Close() return } @@ -908,11 +908,11 @@ func (m *M) before() { if *traceFile != "" { f, err := os.Create(toOutputDir(*traceFile)) if err != nil { - fmt.Fprintf(os.Stderr, "testing: %s", err) + fmt.Fprintf(os.Stderr, "testing: %s\n", err) return } if err := trace.Start(f); err != nil { - fmt.Fprintf(os.Stderr, "testing: can't start tracing: %s", err) + fmt.Fprintf(os.Stderr, "testing: can't start tracing: %s\n", err) f.Close() return }