Skip to content

When to use errors.WithStack(err) in the code? #3426

Discussion options

You must be logged in to vote

I interpret the documentation to mean "Any Go package that is not within the Velero codebase, including standard library, should be returned with errors.WithStack."

Other functions like errrors.Wrap actually do WithStack under the hood, if I remember correctly.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by carlisia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants