Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ func Stack(err error) error {
}
}

// WithStack exactly the same as Stack. An alternative name for Stack is
// provided to make this library a drop-in replacement for
// github.com/pkg/errors and github.com/mailgun/holster/v4/errors.
func WithStack(err error) error {
return Stack(err)
}

type stack struct {
error
*callstack.CallStack
Expand Down
Loading