]> Cypherpunks repositories - gostls13.git/commit
runtime: don't duplicate reraised panic values in printpanics
authorDamien Neil <dneil@google.com>
Fri, 31 Jan 2025 23:03:15 +0000 (15:03 -0800)
committerDamien Neil <dneil@google.com>
Thu, 6 Feb 2025 20:02:14 +0000 (12:02 -0800)
commit478ad013f90fe1dbb199d22f41b93c920ae0d5e9
tree9baaa33c1515d4048dc431d5801aec34e213da1b
parent9b4a462a7d85753738723402e298039c3424e584
runtime: don't duplicate reraised panic values in printpanics

Change the output printed when crashing with a reraised panic value
to not duplicate that value.

Changes output of panicking with "PANIC", recovering, and reraising
from:

  panic: PANIC [recovered]
    panic: PANIC

to:

  panic: PANIC [recovered, reraised]

Fixes #71517

Change-Id: Id59938c4ea0df555b851ffc650fe6f94c0845499
Reviewed-on: https://go-review.googlesource.com/c/go/+/645916
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
doc/next/4-runtime.md
src/runtime/crash_test.go
src/runtime/panic.go
src/runtime/runtime2.go
src/runtime/testdata/testprog/crash.go