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