From 0344732afcc4da02efbe4acd9e165d6e65052861 Mon Sep 17 00:00:00 2001 From: Jeff Gordon Date: Wed, 11 Dec 2024 10:56:22 -0800 Subject: [PATCH] Update sleeping-and-retrying.mdx --- src/content/docs/workflows/build/sleeping-and-retrying.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/workflows/build/sleeping-and-retrying.mdx b/src/content/docs/workflows/build/sleeping-and-retrying.mdx index 2ad69f077b8e4ae..a8a0f5c351318c3 100644 --- a/src/content/docs/workflows/build/sleeping-and-retrying.mdx +++ b/src/content/docs/workflows/build/sleeping-and-retrying.mdx @@ -103,7 +103,7 @@ export class MyWorkflow extends WorkflowEntrypoint { async run(event: WorkflowEvent, step: WorkflowStep) { await step.do("some step", async () => { if !(event.data) { - throw NonRetryableError("event.data did not contain the expected payload") + throw new NonRetryableError("event.data did not contain the expected payload") } }) }