mirror of
https://github.com/docker/docker-agent.git
synced 2026-11-04 10:02:15 +00:00
Add a typed sentinel so callers can distinguish 'not supported by this runtime' from other failures via errors.Is. Wrap the existing ad-hoc strings in RemoteRuntime.RestartToolset and ExecuteMCPPrompt with %w so the existing user-facing messages stay unchanged.
9 lines
320 B
Go
9 lines
320 B
Go
package runtime
|
|
|
|
import "errors"
|
|
|
|
// ErrUnsupported indicates that a runtime method is not supported by the
|
|
// current backend. Callers can check with errors.Is to surface a clear
|
|
// message instead of treating a silent zero value as a feature.
|
|
var ErrUnsupported = errors.New("operation not supported by this runtime")
|