From fa4781a41502b283b270f7d83e2678152fd01682 Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Mon, 24 Apr 2023 13:52:28 -0400 Subject: [PATCH] cmd/go/internal/script: log the stop message instead of the state when stopping Change-Id: I3c887b5f3716e78dfffad6869f986c4381fae3e7 Reviewed-on: https://go-review.googlesource.com/c/go/+/488235 Run-TryBot: Bryan Mills Reviewed-by: Michael Matloob Auto-Submit: Bryan Mills TryBot-Result: Gopher Robot --- src/cmd/go/internal/script/engine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/go/internal/script/engine.go b/src/cmd/go/internal/script/engine.go index dfce755522..43054a279b 100644 --- a/src/cmd/go/internal/script/engine.go +++ b/src/cmd/go/internal/script/engine.go @@ -295,7 +295,7 @@ func (e *Engine) Execute(s *State, file string, script *bufio.Reader, log io.Wri // Since the 'stop' command halts execution of the entire script, // log its message separately from the section in which it appears. err = endSection(true) - s.Logf("%v\n", s) + s.Logf("%v\n", stop) if err == nil { return nil } -- 2.48.1