diff --git a/libs/wingsdk/src/shared-aws/schedule.ts b/libs/wingsdk/src/shared-aws/schedule.ts index 2011cb0ba9d..765fbe0b05a 100644 --- a/libs/wingsdk/src/shared-aws/schedule.ts +++ b/libs/wingsdk/src/shared-aws/schedule.ts @@ -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 !== "?") {