aboutsummaryrefslogtreecommitdiff
path: root/debug/debug.go
diff options
context:
space:
mode:
Diffstat (limited to 'debug/debug.go')
-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