From e6d987180fc30b4f5e89fa72f410b83185855f7b Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 5 Jan 2015 23:05:27 +0100 Subject: [PATCH] Bug 11120: Follow-up: adding a hint about the date format Adding 2 hints about the expected date format to the error message and the help. To test: - Run overdue_notices.pl --date - Run overdue_notices.pl -man - Verify hint about date format shows up Signed-off-by: Brendan Gallagher Signed-off-by: Tomas Cohen Arazi --- misc/cronjobs/overdue_notices.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl index 95d04b1167..c9c2d69db0 100755 --- a/misc/cronjobs/overdue_notices.pl +++ b/misc/cronjobs/overdue_notices.pl @@ -168,7 +168,7 @@ Choose list-all to include all overdue items in the list (limited by B<-max> set =item B<-date> -use it in order to send overdues on a specific date and not Now. +use it in order to send overdues on a specific date and not Now. Format: YYYY-MM-DD. =item B<-email> @@ -364,7 +364,7 @@ if ( $date_input ){ eval { $date_to_run = dt_from_string( $date_input ); }; - die "$date_input is not a valid date, aborting!" + die "$date_input is not a valid date, aborting! Use a date in format YYYY-MM-DD." if $@ or not $date_to_run; } -- 2.39.5