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

Method Error

cli/command/formatter/context.go:83–86  ·  view source on GitHub ↗

Error returns the truncated error (if any) that occurred when loading the context.

()

Source from the content-addressed store, hash-verified

81
82// Error returns the truncated error (if any) that occurred when loading the context.
83func (c *clientContextContext) Error() string {
84 // TODO(thaJeztah) add "--no-trunc" option to context ls and set default to 30 cols to match "docker service ps"
85 return Ellipsis(c.c.Error, maxErrLength)
86}

Callers 5

TestMarshalMapBadFunction · 0.45
TestVolumeContextWriteFunction · 0.45
TestImageContextWriteFunction · 0.45

Calls 1

EllipsisFunction · 0.70

Tested by 5

TestMarshalMapBadFunction · 0.36
TestVolumeContextWriteFunction · 0.36
TestImageContextWriteFunction · 0.36