From: Bryan C. Mills Date: Mon, 24 Apr 2023 17:52:28 +0000 (-0400) Subject: cmd/go/internal/script: log the stop message instead of the state when stopping X-Git-Tag: go1.21rc1~720 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fa4781a41502b283b270f7d83e2678152fd01682;p=gostls13.git 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 --- 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 }