You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be clear, the general advice is right but we should not blindly add additional context for every err return. I've seen many cases where the inner err already provides clear error message and the outer message simply repeats it. We should avoid that.
As a follow-up, let's add a TODO to add context to these errors. It's generally a best practice to wrap all errors with some context:
Originally posted by @sethvargo in #150 (comment)
The above was in reference to the following file: clients/go/pkg/auditopt/config.go however it occurs elsewhere in our go codebase as well.
The text was updated successfully, but these errors were encountered: