MCPcopy
hub / github.com/simstudioai/sim / isAbortError

Function isAbortError

apps/sim/lib/uploads/utils/file-utils.ts:348–355  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

346 * etc). Used in upload retry loops so aborts short-circuit instead of retrying.
347 */
348export function isAbortError(error: unknown): boolean {
349 return (
350 typeof error === 'object' &&
351 error !== null &&
352 'name' in error &&
353 String((error as { name?: unknown }).name) === 'AbortError'
354 )
355}
356
357/**
358 * Heuristic: whether `error` is a transient network/connection failure that's

Callers 3

uploadPartFunction · 0.90
file-utils.test.tsFile · 0.90
uploadOneFileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected