mirror of
https://github.com/golang/go
synced 2024-11-11 18:51:37 -07:00
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>
This commit is contained in:
parent
3fa53f1229
commit
7fb1640613
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user