mirror of
https://github.com/golang/go.git
synced 2025-05-14 03:44:40 +00:00
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>
19 lines
458 B
Markdown
19 lines
458 B
Markdown
## Runtime {#runtime}
|
|
|
|
<!-- go.dev/issue/71517 -->
|
|
|
|
The message printed when a program exits due to an unhandled panic
|
|
that was recovered and re-raised no longer repeats the text of
|
|
the panic value.
|
|
|
|
Previously, a program which panicked with `panic("PANIC")`,
|
|
recovered the panic, and then re-panicked with the original
|
|
value would print:
|
|
|
|
panic: PANIC [recovered]
|
|
panic: PANIC
|
|
|
|
This program will now print:
|
|
|
|
panic: PANIC [recovered, reraised]
|