mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 06:18:47 +02:00
More specific error message.
This commit is contained in:
@@ -1978,7 +1978,10 @@ static int set_constant_value(expr_node *atom)
|
||||
return OK;
|
||||
}
|
||||
/* Not a time - must be a number */
|
||||
if (*s) return E_BAD_NUMBER;
|
||||
if (*s) {
|
||||
Eprint("%s: `%s'", ErrMsg[E_BAD_NUMBER], DBufValue(&ExprBuf));
|
||||
return E_BAD_NUMBER;
|
||||
}
|
||||
atom->u.value.type = INT_TYPE;
|
||||
atom->u.value.v.val = val;
|
||||
return OK;
|
||||
|
||||
Reference in New Issue
Block a user