From e751af1abacaf9958fe2e69d6dcb2e93cb1a3e4d Mon Sep 17 00:00:00 2001 From: Rhys Hiltner Date: Wed, 4 Dec 2019 19:37:00 -0800 Subject: [PATCH] cmd/go: print newline after GOOS/GOARCH error 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 TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- src/cmd/go/internal/work/action.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/go/internal/work/action.go b/src/cmd/go/internal/work/action.go index 391306a8d95e1b..e3cb87fbb9adfd 100644 --- a/src/cmd/go/internal/work/action.go +++ b/src/cmd/go/internal/work/action.go @@ -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() }