(w http.ResponseWriter, r *http.Request, err error, strs ...string)
| 42 | } |
| 43 | |
| 44 | func respondError(w http.ResponseWriter, r *http.Request, err error, strs ...string) { |
| 45 | respondErrorCode(w, r, http.StatusBadRequest, err, strs...) |
| 46 | } |
| 47 | |
| 48 | func respondErrorCode(w http.ResponseWriter, r *http.Request, code int, err error, strs ...string) { |
| 49 | err = errors.Wrap(err, strs...) |
no test coverage detected