mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug
- Flipped the test and error message for wait dates that must be before due dates.
This commit is contained in:
parent
ffa1bac193
commit
488b23f42f
1 changed files with 2 additions and 2 deletions
|
@ -647,8 +647,8 @@ void Task::validate () const
|
|||
if (has ("wait"))
|
||||
{
|
||||
Date wait (::atoi (get ("wait").c_str ()));
|
||||
if (wait < due)
|
||||
throw std::string ("A 'wait' date must be after a 'due' date.");
|
||||
if (wait > due)
|
||||
throw std::string ("A 'wait' date must be before a 'due' date.");
|
||||
}
|
||||
|
||||
Date entry (::atoi (get ("entry").c_str ()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue