Skip to content

Commit

Permalink
Merge pull request #53 from scr-oath/patch-1
Browse files Browse the repository at this point in the history
Make the stack output a string rather than array of bytes.
  • Loading branch information
vnugopal authored Dec 12, 2019
2 parents a4c72a4 + 136b1b9 commit 7901be9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store-cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7901be9

Please sign in to comment.