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

Function installCause

packages/opencode/src/plugin/tui/runtime.ts:821–825  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

819}
820
821function installCause(err: unknown) {
822 if (!err || typeof err !== "object") return
823 if (!("cause" in err)) return
824 return (err as { cause?: unknown }).cause
825}
826
827function installDetail(err: unknown) {
828 const hit = installCause(err) ?? err

Callers 1

installDetailFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected