]> Cypherpunks repositories - gostls13.git/commit
cmd/trace: fix error message for bad goroutine state transition
authorNick Ripley <nick.ripley@datadoghq.com>
Fri, 10 Feb 2023 19:08:27 +0000 (14:08 -0500)
committerGopher Robot <gobot@golang.org>
Fri, 10 Feb 2023 21:45:16 +0000 (21:45 +0000)
commitf0cb44a7736df649cdb5c7b3dfe8e270ae691626
tree74a9fdc2d508d7b0755cd7c19f4938e6df2cae89
parent117d5588bde2d1f1f830c3d763bf4f8e999a12c1
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>
src/cmd/trace/trace.go