mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 06:18:47 +02:00
Better error message when a number that isn't recognized as a day number or year is encountered.
This commit is contained in:
@@ -542,6 +542,12 @@ int ParseRem(ParsePtr s, Trigger *trig, TimeTrig *tim)
|
||||
if (r) return r;
|
||||
break;
|
||||
|
||||
case T_Number:
|
||||
DBufFree(&buf);
|
||||
Eprint("Number `%d' is not recognized as a year or a day number",
|
||||
tok.val);
|
||||
return E_PARSE_ERR;
|
||||
|
||||
case T_Year:
|
||||
DBufFree(&buf);
|
||||
if (trig->y != NO_YR) return E_YR_TWICE;
|
||||
|
||||
@@ -5699,6 +5699,8 @@ set zxk dooby(1)
|
||||
Entering UserFN dooby(1)
|
||||
Leaving UserFN dooby(1) => 1
|
||||
|
||||
REM 1 Jan 1873 MSG hehah
|
||||
../tests/test.rem(1122): Number `1873' is not recognized as a year or a day number
|
||||
# Don't want Remind to queue reminders
|
||||
EXIT
|
||||
|
||||
|
||||
@@ -1119,6 +1119,7 @@ set zxk dooby()
|
||||
set zxk dooby(1, 2)
|
||||
set zxk dooby(1)
|
||||
|
||||
REM 1 Jan 1873 MSG hehah
|
||||
# Don't want Remind to queue reminders
|
||||
EXIT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user