mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-02 05:30:23 +02:00
Bug Fix - #382
- Changed from testing the ID to testing the sequence size.
This commit is contained in:
parent
a5d8ef524e
commit
cda959a658
1 changed files with 1 additions and 1 deletions
|
@ -1887,7 +1887,7 @@ int handleAnnotate (std::string &outs)
|
||||||
if (!context.task.has ("description"))
|
if (!context.task.has ("description"))
|
||||||
throw std::string ("Cannot apply a blank annotation.");
|
throw std::string ("Cannot apply a blank annotation.");
|
||||||
|
|
||||||
if (!context.task.has ("id"))
|
if (context.sequence.size () == 0)
|
||||||
throw std::string ("ID needed to apply an annotation.");
|
throw std::string ("ID needed to apply an annotation.");
|
||||||
|
|
||||||
std::stringstream out;
|
std::stringstream out;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue