go/src/cmd/trace
Nick Ripley f0cb44a773 cmd/trace: fix error message for bad goroutine state transition
The error message when an invalid goroutine state transition is found in
a trace should show the current state, not the next state, when
comparing against the expected current state.

This CL also picks up a gofmt change to the file.

Change-Id: Ic0ce6c9ce79d8a784b73b115b5db76c311b8593d
Reviewed-on: https://go-review.googlesource.com/c/go/+/467416
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-02-10 21:45:16 +00:00
..
static doc: lint Markdown for trailing spaces and code blocks 2022-05-27 15:07:38 +00:00
annotations.go all: use fmt.Appendf 2022-10-04 22:43:12 +00:00
annotations_test.go all: gofmt main repo 2022-04-11 16:34:30 +00:00
doc.go all: gofmt main repo 2022-04-11 16:34:30 +00:00
goroutines.go cmd/trace: display goroutines (PC=0) with clearer description 2022-08-25 20:44:19 +00:00
main.go cmd/trace: fix typo in web documentation 2022-07-11 19:54:22 +00:00
mmu.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
pprof.go all: use os/exec instead of internal/execabs 2022-05-02 17:49:12 +00:00
trace.go cmd/trace: fix error message for bad goroutine state transition 2023-02-10 21:45:16 +00:00
trace_test.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
trace_unix_test.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00