()
| 70 | } |
| 71 | |
| 72 | func (err TaskfileFetchFailedError) Error() string { |
| 73 | var statusText string |
| 74 | if err.HTTPStatusCode != 0 { |
| 75 | statusText = fmt.Sprintf(" with status code %d (%s)", err.HTTPStatusCode, http.StatusText(err.HTTPStatusCode)) |
| 76 | } |
| 77 | return fmt.Sprintf(`task: Download of %q failed%s`, filepath.ToSlash(err.URI), statusText) |
| 78 | } |
| 79 | |
| 80 | func (err TaskfileFetchFailedError) Code() int { |
| 81 | return CodeTaskfileFetchFailed |
nothing calls this directly
no outgoing calls
no test coverage detected