diff --git a/.changeset/dry-months-sparkle.md b/.changeset/dry-months-sparkle.md new file mode 100644 index 000000000..a3514c21e --- /dev/null +++ b/.changeset/dry-months-sparkle.md @@ -0,0 +1,5 @@ +--- +"inngest": patch +--- + +(Internal) Fix missing name on `NonRetriableError`, ensuring it's correctly (de)serialized diff --git a/packages/inngest/src/components/NonRetriableError.ts b/packages/inngest/src/components/NonRetriableError.ts index 2844aefc8..9c270fad2 100644 --- a/packages/inngest/src/components/NonRetriableError.ts +++ b/packages/inngest/src/components/NonRetriableError.ts @@ -29,5 +29,7 @@ export class NonRetriableError extends Error { super(message); // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment this.cause = options?.cause; + + this.name = "NonRetriableError"; } }