TranslatedUserError writes the translated user error of the provided error.
(ctx context.Context, w http.ResponseWriter, err error)
| 25 | |
| 26 | // TranslatedUserError writes the translated user error of the provided error. |
| 27 | func TranslatedUserError(ctx context.Context, w http.ResponseWriter, err error) { |
| 28 | UserError(ctx, w, usererror.Translate(ctx, err)) |
| 29 | } |
| 30 | |
| 31 | // NotFound writes the json-encoded message for a not found error. |
| 32 | func NotFound(ctx context.Context, w http.ResponseWriter) { |
no test coverage detected
searching dependent graphs…