MCPcopy
hub / github.com/triggerdotdev/trigger.dev / castToError

Function castToError

packages/core/src/v3/apiClient/core.ts:236–239  ·  view source on GitHub ↗
(err: any)

Source from the content-addressed store, hash-verified

234}
235
236function castToError(err: any): Error {
237 if (err instanceof Error) return err;
238 return new Error(err);
239}
240
241type ShouldRetryResult =
242 | {

Callers 1

_doZodFetchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…