Skip to content

Commit 0293f72

Browse files
authored
Update sleeping-and-retrying.mdx
1 parent 433ff9b commit 0293f72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/workflows/build/sleeping-and-retrying.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class MyWorkflow extends WorkflowEntrypoint<Env, Params> {
103103
async run(event: WorkflowEvent<Params>, step: WorkflowStep) {
104104
await step.do("some step", async () => {
105105
if !(event.data) {
106-
throw NonRetryableError("event.data did not contain the expected payload")
106+
throw new NonRetryableError("event.data did not contain the expected payload")
107107
}
108108
})
109109
}

0 commit comments

Comments
 (0)