From 4d72bb7eb15f5d0c53364e45e6799c6166852174 Mon Sep 17 00:00:00 2001 From: Marcio Cruz de Almeida <67694075+marciocadev@users.noreply.github.com> Date: Fri, 15 Mar 2024 19:13:26 -0300 Subject: [PATCH] Update libs/wingsdk/src/shared-aws/schedule.ts Co-authored-by: Chris Rybicki --- libs/wingsdk/src/shared-aws/schedule.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 !== "?") {