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

Method Error

internal/cli/tool_operator.go:70–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68}
69
70func (e *toolCommandError) Error() string {
71 if e == nil {
72 return nilToolErrorString
73 }
74 if e.err != nil {
75 return redactToolDiagnostic(e.err.Error())
76 }
77 apiErr := newToolAPIError(0, "", e.response)
78 return apiErr.Error()
79}
80
81func newToolListCommand(deps commandDeps) *cobra.Command {
82 var scope toolScopeFlags

Calls 2

redactToolDiagnosticFunction · 0.85
newToolAPIErrorFunction · 0.85

Tested by 1