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:
Federico Hernandez 2010-02-23 22:50:59 +01:00
parent cb1b1510a9
commit a5d8ef524e
3 changed files with 10 additions and 5 deletions

View file

@ -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;