Skip to content

Commit

Permalink
Update libs/wingsdk/src/shared-aws/schedule.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Rybicki <[email protected]>
  • Loading branch information
marciocadev and Chriscbr authored Mar 15, 2024
1 parent 1355d34 commit 4d72bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/wingsdk/src/shared-aws/schedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const convertUnixCronToAWSCron = (cron: string) => {
}

if (cron && dayOfMonth !== "*" && dayOfWeek !== "*") {
throw new Error("Cannot supply both 'day' and 'weekDay', use at most one");
throw new Error("Cannot restrict both 'day-of-month' and 'day-of-week' in a cron expression, at least one must be '*'");
}

if (dayOfWeek !== "*" && dayOfWeek !== "?") {
Expand Down

0 comments on commit 4d72bb7

Please sign in to comment.