write traceback to log crash log

This commit is contained in:
James Bardin 2020-10-21 14:57:25 -04:00
parent a2dee91eba
commit b61488a8ba
1 changed files with 3 additions and 0 deletions

View File

@ -60,6 +60,9 @@ func PanicHandler(logF *os.File) panicwrap.HandlerFunc {
return
}
// add the trace back to the log
f.WriteString("\n" + m)
// Tell the user a crash occurred in some helpful way that
// they'll hopefully notice.
fmt.Printf("\n\n")