diff --git a/src/commands/CmdAnnotate.cpp b/src/commands/CmdAnnotate.cpp index dc9afa7c..d3015d29 100644 --- a/src/commands/CmdAnnotate.cpp +++ b/src/commands/CmdAnnotate.cpp @@ -40,6 +40,11 @@ int CmdAnnotate ( std::set ids = cli.getIds (); std::string annotation = cli.getAnnotation (); + if (annotation.empty ()) + { + throw std::string ("No annotation string given. See 'timew help annotate'."); + } + // Load the data. // Note: There is no filter. Interval filter;