MCPcopy
hub / github.com/docker/docker-agent / LastError

Method LastError

pkg/tools/lifecycle/state.go:154–158  ·  view source on GitHub ↗

LastError returns the most recent error recorded by Fail, or nil if a clean Set has happened since.

()

Source from the content-addressed store, hash-verified

152// LastError returns the most recent error recorded by Fail, or nil if a
153// clean Set has happened since.
154func (t *Tracker) LastError() error {
155 t.mu.RLock()
156 defer t.mu.RUnlock()
157 return t.lastErr
158}

Callers 4

RestartAndWaitMethod · 0.80
tryRestartMethod · 0.80

Calls

no outgoing calls

Tested by 2