MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / describeSyncFailure

Function describeSyncFailure

packages/core/sdk/src/executor.ts:918–926  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

916 * stringification drops a `cause` that is an `Error` — so unwrap one level and
917 * keep both halves. */
918const describeSyncFailure = (error: unknown): string => {
919 const base =
920 error instanceof Error && error.message.length > 0
921 ? error.message
922 : Inspectable.toStringUnknown(error, 0);
923 const cause = (error as { readonly cause?: unknown } | null | undefined)?.cause;
924 if (cause instanceof Error && cause.message.length > 0) return `${base}: ${cause.message}`;
925 return base;
926};
927// oxlint-enable executor/no-instanceof-error, executor/no-unknown-error-message
928
929const createDefaultMemoryDb = (tables: FumaTables): ExecutorDb => {

Callers 3

mintOAuthConnectionFunction · 0.85
createExecutorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected