]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: print newline after GOOS/GOARCH error
authorRhys Hiltner <rhys@justin.tv>
Thu, 5 Dec 2019 03:37:00 +0000 (19:37 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 5 Dec 2019 22:08:26 +0000 (22:08 +0000)
The newline was dropped during the refactor in CL 194617.

Fixes #35984

Change-Id: I7e0d7aa2d7a4d1f44898921f8bb40401620d78b2
Reviewed-on: https://go-review.googlesource.com/c/go/+/209965
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/internal/work/action.go

index 391306a8d95e1b414626a36c9f5d69973c3d5e78..e3cb87fbb9adfd680179a8a48c91ec5e76091308 100644 (file)
@@ -291,7 +291,7 @@ func (b *Builder) Init() {
        }
 
        if err := CheckGOOSARCHPair(cfg.Goos, cfg.Goarch); err != nil {
-               fmt.Fprintf(os.Stderr, "cmd/go: %v", err)
+               fmt.Fprintf(os.Stderr, "cmd/go: %v\n", err)
                base.SetExitStatus(2)
                base.Exit()
        }