MCPcopy Index your code
hub / github.com/docker/cli / wrapAsPluginError

Function wrapAsPluginError

cli-plugins/manager/error.go:38–40  ·  view source on GitHub ↗

wrapAsPluginError wraps an error in a pluginError with an additional message.

(err error, msg string)

Source from the content-addressed store, hash-verified

36// wrapAsPluginError wraps an error in a pluginError with an
37// additional message.
38func wrapAsPluginError(err error, msg string) error {
39 return &pluginError{cause: fmt.Errorf("%s: %w", msg, err)}
40}
41
42// newPluginError creates a new pluginError, analogous to
43// errors.Errorf.

Callers 3

newPluginFunction · 0.85
RunHookMethod · 0.85
TestPluginErrorFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestPluginErrorFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…