Skip to content

Commit 136b1b9

Browse files
authored
Make the stack output a string rather than array of bytes.
1 parent a4c72a4 commit 136b1b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

store-cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func failureExit(err error) {
3939
func finalRecover() {
4040
if p := recover(); p != nil {
4141
fmt.Fprintln(os.Stderr, "ERROR: Something terrible has happened. Please file a ticket with this info:")
42-
fmt.Fprintf(os.Stderr, "ERROR: %v\n%v\n", p, debug.Stack())
42+
fmt.Fprintf(os.Stderr, "ERROR: %v\n%s\n", p, string(debug.Stack()))
4343
failureExit(nil)
4444
}
4545
successExit()

0 commit comments

Comments
 (0)