MCPcopy Create free account
hub / github.com/cortexkit/magic-context / getErrorMessage

Function getErrorMessage

packages/plugin/src/shared/error-message.ts:1–3  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

1export function getErrorMessage(error: unknown): string {
2 return error instanceof Error ? error.message : String(error);
3}
4
5/**
6 * Produce a rich, safe-to-log description of any thrown value.

Callers 15

executeFunction · 0.90
openTimerDatabaseOrNullFunction · 0.90
ensureSecureStorageDirFunction · 0.90
openDatabaseFunction · 0.90
reviewUserMemoriesFunction · 0.90
openOpenCodeDbFunction · 0.90
verifyOneBatchFunction · 0.90
refreshOnePrimerFunction · 0.90
classifyOneChunkFunction · 0.90
mapOneBatchFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected