MCPcopy Create free account
hub / github.com/go-task/task / Error

Method Error

errors/errors_taskfile.go:72–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70}
71
72func (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
80func (err TaskfileFetchFailedError) Code() int {
81 return CodeTaskfileFetchFailed

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected