diff --git a/designer/client/src/http/HttpService.ts b/designer/client/src/http/HttpService.ts index 9fcf4cdadc6..3759f6fb9b4 100644 --- a/designer/client/src/http/HttpService.ts +++ b/designer/client/src/http/HttpService.ts @@ -349,10 +349,13 @@ class HttpService { .then(() => { return { isSuccess: true }; }) - .catch((error) => { + .catch((error: AxiosError) => { if (error?.response?.status != 400) { return this.#addError( - i18next.t("notification.error.failedToDeploy", "Failed to deploy {{processName}}", { processName }), + i18next.t("notification.error.failedToDeploy", "Failed to deploy {{processName}} due to: {{axiosError}}", { + processName, + axiosError: handleAxiosError(error), + }), error, true, ).then(() => { diff --git a/designer/server/src/main/scala/pl/touk/nussknacker/ui/process/periodic/PeriodicProcessService.scala b/designer/server/src/main/scala/pl/touk/nussknacker/ui/process/periodic/PeriodicProcessService.scala index 9569e7d4ade..aa643e72250 100644 --- a/designer/server/src/main/scala/pl/touk/nussknacker/ui/process/periodic/PeriodicProcessService.scala +++ b/designer/server/src/main/scala/pl/touk/nussknacker/ui/process/periodic/PeriodicProcessService.scala @@ -132,9 +132,12 @@ class PeriodicProcessService( case e: SingleScheduleProperty => e.nextRunAt(clock).map(t => List((ScheduleName(None), t))) } (schedules match { - case Left(error) => Left(s"Failed to parse periodic property: $error") - case Right(scheduleDates) if scheduleDates.forall(_._2.isEmpty) => Left(s"No future date determined by $schedule") - case correctSchedules => correctSchedules + case Left(error) => Left(s"Problem with parsing periodic property: $error") + case Right(scheduleDates) if scheduleDates.forall(_._2.isEmpty) => + Left( + s"Problem with the scheduled date. It seems that a date from the past was configured in the CRON configuration." + ) + case correctSchedules => correctSchedules }).left.map(new PeriodicProcessException(_)) }