Files
docker-agent/pkg/runtime/errors.go
T
David Gageot e68b835116 feat(runtime): introduce ErrUnsupported sentinel for remote runtime gaps
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.
2026-05-09 09:00:50 +02:00

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")