MCPcopy Index your code
hub / github.com/anomalyco/opencode / isConfigInvalidErrorLike

Function isConfigInvalidErrorLike

packages/app/src/utils/server-errors.ts:52–56  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

50}
51
52function isConfigInvalidErrorLike(error: unknown): error is ConfigInvalidError {
53 if (typeof error !== "object" || error === null) return false
54 const o = error as Record<string, unknown>
55 return o.name === "ConfigInvalidError" && typeof o.data === "object" && o.data !== null
56}
57
58function isProviderModelNotFoundErrorLike(error: unknown): error is ProviderModelNotFoundError {
59 if (typeof error !== "object" || error === null) return false

Callers 1

formatServerErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected