Even more changes

This commit is contained in:
Tulir Asokan
2019-03-28 23:28:27 +02:00
parent 6a3017888f
commit 1b1cabb360
7 changed files with 55 additions and 62 deletions

View File

@ -82,13 +82,14 @@ const Oops = ` __________
\ (XX)\_______
(__)\ )\/\
U ||----W |
|| ||`
|| ||
A fatal error has occurred.
`
func PrettyPanic(panic interface{}) {
fmt.Println(Oops)
fmt.Println("")
fmt.Println("A fatal error has occurred.")
fmt.Println("")
fmt.Print(Oops)
traceFile := fmt.Sprintf("/tmp/gomuks-panic-%s.txt", time.Now().Format("2006-01-02--15-04-05"))
var buf bytes.Buffer