MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / wrapProviderError

Function wrapProviderError

internal/desktop/provider_service.go:216–224  ·  view source on GitHub ↗
(code string, err error, name string)

Source from the content-addressed store, hash-verified

214}
215
216func wrapProviderError(code string, err error, name string) error {
217 if err == nil {
218 return nil
219 }
220 if code == "PROVIDER_NOT_FOUND" {
221 return NewError(code, "provider not found", map[string]string{"name": name})
222 }
223 return wrapError(code, err)
224}

Callers 2

ShowMethod · 0.85
RemoveMethod · 0.85

Calls 2

NewErrorFunction · 0.85
wrapErrorFunction · 0.85

Tested by

no test coverage detected