aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2017-01-04 10:13:18 -0800
committerIan Lance Taylor <iant@golang.org>2017-01-04 20:54:33 +0000
commit7fb16406139e934d84f7ec66ba440a772747270a (patch)
treecbc6992f8af328a5967922b7ad96b749d8c4c261
parent3fa53f1229956a8874d58e6d80a4433b57fc82ac (diff)
downloadgo-7fb16406139e934d84f7ec66ba440a772747270a.tar.gz
go-7fb16406139e934d84f7ec66ba440a772747270a.zip
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 <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-rw-r--r--src/testing/testing.go8
1 files changed, 4 insertions, 4 deletions
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
}