diff options
author | Ian Lance Taylor <iant@golang.org> | 2017-01-04 10:13:18 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2017-01-04 20:54:33 +0000 |
commit | 7fb16406139e934d84f7ec66ba440a772747270a (patch) | |
tree | cbc6992f8af328a5967922b7ad96b749d8c4c261 /src/testing | |
parent | 3fa53f1229956a8874d58e6d80a4433b57fc82ac (diff) | |
download | go-git-7fb16406139e934d84f7ec66ba440a772747270a.tar.gz |
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>
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/testing.go | 8 |
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 } |