MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / castToError

Function castToError

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

Source from the content-addressed store, hash-verified

137export class InternalServerError extends ApiError {}
138
139function castToError(err: any): Error {
140 if (err instanceof Error) return err;
141 return new Error(err);
142}

Callers 1

generateMethod · 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…