mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug Fix - #382 task annotate doesn't complain when a task id is omitted
- added error msg when annotating without a task id
This commit is contained in:
parent
cb1b1510a9
commit
a5d8ef524e
3 changed files with 10 additions and 5 deletions
|
@ -1887,6 +1887,9 @@ int handleAnnotate (std::string &outs)
|
|||
if (!context.task.has ("description"))
|
||||
throw std::string ("Cannot apply a blank annotation.");
|
||||
|
||||
if (!context.task.has ("id"))
|
||||
throw std::string ("ID needed to apply an annotation.");
|
||||
|
||||
std::stringstream out;
|
||||
|
||||
std::vector <Task> tasks;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue