()
| 32 | } |
| 33 | |
| 34 | func repositoryNotWritableError() *apiError { |
| 35 | return internalServerError(errors.New("repository is not writable")) |
| 36 | } |
| 37 | |
| 38 | func internalServerError(err error) *apiError { |
| 39 | return &apiError{http.StatusInternalServerError, serverapi.ErrorInternal, fmt.Sprintf("internal server error: %v", err)} |
no test coverage detected