From 1917015fc1845d49605d965a1f9798cf5b835276 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 --- 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 f7f8a9c..2023c56 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.1.0