Skip to content

Commit

Permalink
Update docstring.
Browse files Browse the repository at this point in the history
  • Loading branch information
cstorey-monzo committed Mar 12, 2024
1 parent 745d41c commit 29ed051
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ func (p *Error) StackTrace() []uintptr {
return out
}

// StackString formats the stack as a beautiful string with newlines
// StackString formats the stacks from the terror chain as a string. If we
// encounter more than one terror in the chain with a stack frame, we'll print
// each one, separated by three hyphens on their own line.
func (p *Error) StackString() string {
var buffer strings.Builder
terr := p
Expand Down

0 comments on commit 29ed051

Please sign in to comment.