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

Method MarshalText

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

MarshalText marshals the pluginError into a textual form.

()

Source from the content-addressed store, hash-verified

30
31// MarshalText marshals the pluginError into a textual form.
32func (e *pluginError) MarshalText() (text []byte, err error) {
33 return []byte(e.cause.Error()), nil
34}
35
36// wrapAsPluginError wraps an error in a pluginError with an
37// additional message.

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected