MCPcopy Create free account
hub / github.com/cloudconvert/cloudconvert-cli / throwIfCancelled

Function throwIfCancelled

src/job.ts:436–440  ·  view source on GitHub ↗
(cancellationSignal?: AbortSignal)

Source from the content-addressed store, hash-verified

434}
435
436function throwIfCancelled(cancellationSignal?: AbortSignal): void {
437 if (cancellationSignal?.aborted) {
438 throw new Error(JOB_CANCELLED_MESSAGE);
439 }
440}
441
442function getErrorMessage(error: unknown): string {
443 return error instanceof Error ? error.message : String(error);

Callers 1

uploadFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected