MCPcopy Index your code
hub / github.com/cortexproject/cortex / wrapWithUser

Function wrapWithUser

pkg/ingester/errors.go:45–47  ·  view source on GitHub ↗

wrapWithUser prepends the user to the error. It does not retain a reference to err.

(err error, userID string)

Source from the content-addressed store, hash-verified

43
44// wrapWithUser prepends the user to the error. It does not retain a reference to err.
45func wrapWithUser(err error, userID string) error {
46 return fmt.Errorf("user=%s: %s", userID, err)
47}

Calls

no outgoing calls