Skip to content
Myr

chore: document panic behavior

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by desertwitch · committed by desertwitch · parent 1923181 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:tea.go+1 added-1 removed
803 unmodified lines
804 select {805 case p.errs <- ErrProgramPanic:806 default:807 }808 p.shutdown(true)808 p.shutdown(true) // Ok to call here, p.Run() cannot do it anymore.809 fmt.Printf("Caught panic:\n\n%s\n\nRestoring terminal...\n\n", r)810 debug.PrintStack()811}812
92 unmodified lines