From 136b1b9514a679bd99cb2662034f495c2f6e94ba Mon Sep 17 00:00:00 2001 From: Sheridan C Rawlins <41922797+scr-oath@users.noreply.github.com> Date: Wed, 11 Dec 2019 13:10:53 -0800 Subject: [PATCH] Make the stack output a string rather than array of bytes. --- store-cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store-cli.go b/store-cli.go index 1af3b75..d314e4b 100644 --- a/store-cli.go +++ b/store-cli.go @@ -39,7 +39,7 @@ func failureExit(err error) { func finalRecover() { if p := recover(); p != nil { fmt.Fprintln(os.Stderr, "ERROR: Something terrible has happened. Please file a ticket with this info:") - fmt.Fprintf(os.Stderr, "ERROR: %v\n%v\n", p, debug.Stack()) + fmt.Fprintf(os.Stderr, "ERROR: %v\n%s\n", p, string(debug.Stack())) failureExit(nil) } successExit()