aboutsummaryrefslogtreecommitdiff
path: root/debug
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2019-03-28 23:28:27 +0200
committerTulir Asokan <tulir@maunium.net>2019-03-28 23:28:27 +0200
commit1b1cabb360538e03fd72092eb0e2cb25edb633f8 (patch)
treec8d46c5e3cd2bd39708375db566e5882fd4548a2 /debug
parent6a3017888fa0d2cdea581b99b5521b10b9312716 (diff)
Even more changes
Diffstat (limited to 'debug')
-rw-r--r--debug/debug.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/debug/debug.go b/debug/debug.go
index be3d925..b7d97bb 100644
--- a/debug/debug.go
+++ b/debug/debug.go
@@ -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