Skip to content

Commit

Permalink
cmd/go/internal/script: log the stop message instead of the state whe…
Browse files Browse the repository at this point in the history
…n stopping

Change-Id: I3c887b5f3716e78dfffad6869f986c4381fae3e7
Reviewed-on: https://go-review.googlesource.com/c/go/+/488235
Run-TryBot: Bryan Mills <[email protected]>
Reviewed-by: Michael Matloob <[email protected]>
Auto-Submit: Bryan Mills <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
  • Loading branch information
Bryan C. Mills authored and gopherbot committed May 2, 2023
1 parent 2d83b64 commit fa4781a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/go/internal/script/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit fa4781a

Please sign in to comment.