MCPcopy Create free account
hub / github.com/anomalyco/opencode / errorDescriptionKey

Function errorDescriptionKey

packages/app/src/pages/error-description.ts:1–11  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

1export function errorDescriptionKey(error: unknown) {
2 if (
3 typeof error === "object" &&
4 error !== null &&
5 "localServerStartup" in error &&
6 error.localServerStartup === true
7 ) {
8 return "error.page.description.localServerStartup" as const
9 }
10 return "error.page.description" as const
11}

Callers 2

ErrorPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected