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

Function errorMessage

packages/tui/src/app.tsx:149–162  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

147}
148
149function errorMessage(error: unknown) {
150 if (
151 typeof error === "object" &&
152 error !== null &&
153 "data" in error &&
154 typeof error.data === "object" &&
155 error.data !== null &&
156 "message" in error.data &&
157 typeof error.data.message === "string"
158 ) {
159 return error.data.message
160 }
161 return error instanceof Error ? error.message : String(error)
162}
163
164function isVersionGreater(left: string, right: string) {
165 const parse = (value: string) => {

Callers 1

AppFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected