Skip to content

Commit

Permalink
Update sleeping-and-retrying.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
freetonik authored Dec 12, 2024
1 parent 433ff9b commit 0293f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/docs/workflows/build/sleeping-and-retrying.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class MyWorkflow extends WorkflowEntrypoint<Env, Params> {
async run(event: WorkflowEvent<Params>, 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")
}
})
}
Expand Down

0 comments on commit 0293f72

Please sign in to comment.