MCPcopy Index your code
hub / github.com/docker/docker-agent / wrap

Function wrap

pkg/tools/lifecycle/classify.go:113–115  ·  view source on GitHub ↗

wrap returns an error satisfying errors.Is for both sentinel and underlying, using Go 1.20+ multi-%w support.

(sentinel, underlying error)

Source from the content-addressed store, hash-verified

111// wrap returns an error satisfying errors.Is for both sentinel and
112// underlying, using Go 1.20+ multi-%w support.
113func wrap(sentinel, underlying error) error {
114 return fmt.Errorf("%w: %w", sentinel, underlying)
115}

Callers 4

ClassifyFunction · 0.85
classifyByMessageFunction · 0.85
connectMethod · 0.85
runTUIWrappedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected