diff --git a/src/content/docs/workflows/build/sleeping-and-retrying.mdx b/src/content/docs/workflows/build/sleeping-and-retrying.mdx index 2ad69f077b8e4a..a8a0f5c351318c 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") } }) }