MCPcopy Create free account
hub / github.com/massCodeIO/massCode / getErrorMessage

Function getErrorMessage

src/main/ipc/handlers/http.ts:292–294  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

290}
291
292function getErrorMessage(error: unknown): string | undefined {
293 return stringValue(asRecord(error)?.message)
294}
295
296export function formatHttpRequestError(error: unknown): string {
297 const candidates = collectErrorCandidates(error)

Callers 1

formatHttpRequestErrorFunction · 0.70

Calls 2

stringValueFunction · 0.85
asRecordFunction · 0.70

Tested by

no test coverage detected