Fix behaviour when 'timew annotate' is called without annotation string

This commit is contained in:
Thomas Lauf 2018-10-10 19:55:52 +02:00
parent 0e43feed3c
commit fc1761e700

View file

@ -40,6 +40,11 @@ int CmdAnnotate (
std::set <int> 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;