From 0293f72628b1e74eff79f84628d07d119abf290f Mon Sep 17 00:00:00 2001 From: Rakhim Davletkaliyev Date: Thu, 12 Dec 2024 17:51:59 +0200 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") } }) }