MCPcopy Create free account
hub / github.com/compozy/agh / Error

Method Error

internal/task/autonomy.go:30–38  ·  view source on GitHub ↗

Error returns the redacted public error string.

()

Source from the content-addressed store, hash-verified

28
29// Error returns the redacted public error string.
30func (e *AutonomyError) Error() string {
31 if e == nil {
32 return "<nil>"
33 }
34 if e.Err == nil {
35 return fmt.Sprintf("task: autonomy lease rejected: %s", e.Reason)
36 }
37 return fmt.Sprintf("task: autonomy lease rejected: %s: %s", e.Reason, e.Err.Error())
38}
39
40// Unwrap returns the wrapped task-domain sentinel.
41func (e *AutonomyError) Unwrap() error {

Calls

no outgoing calls