mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-26 19:14:34 +02:00
Better error messages for ill-formed time.
This commit is contained in:
@@ -805,6 +805,11 @@ static int ParseTimeTrig(ParsePtr s, TimeTrig *tim)
|
||||
break;
|
||||
|
||||
default:
|
||||
if (tok.type == T_Illegal && tok.val < 0) {
|
||||
Eprint("%s: `%s'", ErrMsg[-tok.val], DBufValue(&buf));
|
||||
DBufFree(&buf);
|
||||
return -tok.val;
|
||||
}
|
||||
if (tim->ttime == NO_TIME) return E_EXPECT_TIME;
|
||||
|
||||
PushToken(DBufValue(&buf), s);
|
||||
|
||||
Reference in New Issue
Block a user