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
{{ message }}
Repository navigation
Error details that created with errors.NewWithDetails are lost after it combined using errors.Combine #26
Good question...I'd say yeah, this makes sense. Not returning details is somewhat easier than resolving potentially conflicting ones.
Also, returning multiple errors should be relatively rare, so in those cases you might want to unpack errors and handle them separately. If you use an error handler, you could actually implement a middleware that unpacks these errors for you and passes them to the underlying handler one by one.
Activity
sagikazarmark commentedon Jan 26, 2022
Good question...I'd say yeah, this makes sense. Not returning details is somewhat easier than resolving potentially conflicting ones.
Also, returning multiple errors should be relatively rare, so in those cases you might want to unpack errors and handle them separately. If you use an error handler, you could actually implement a middleware that unpacks these errors for you and passes them to the underlying handler one by one.