MCPcopy
hub / github.com/bitfield/script / WithError

Method WithError

script.go:977–980  ·  view source on GitHub ↗

WithError sets the error err on the pipe.

(err error)

Source from the content-addressed store, hash-verified

975
976// WithError sets the error err on the pipe.
977func (p *Pipe) WithError(err error) *Pipe {
978 p.SetError(err)
979 return p
980}
981
982// WithHTTPClient sets the HTTP client c for use with subsequent requests via
983// [Pipe.Do], [Pipe.Get], or [Pipe.Post]. For example, to make a request using

Callers 9

ExecForEachMethod · 0.95
GetMethod · 0.95
JQMethod · 0.95
PostMethod · 0.95
FileFunction · 0.80
FindFilesFunction · 0.80
IfExistsFunction · 0.80
ListFilesFunction · 0.80

Calls 1

SetErrorMethod · 0.95

Tested by 1