mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Fix behaviour when 'timew annotate' is called without annotation string
This commit is contained in:
parent
0e43feed3c
commit
fc1761e700
1 changed files with 5 additions and 0 deletions
|
@ -40,6 +40,11 @@ int CmdAnnotate (
|
||||||
std::set <int> ids = cli.getIds ();
|
std::set <int> ids = cli.getIds ();
|
||||||
std::string annotation = cli.getAnnotation ();
|
std::string annotation = cli.getAnnotation ();
|
||||||
|
|
||||||
|
if (annotation.empty ())
|
||||||
|
{
|
||||||
|
throw std::string ("No annotation string given. See 'timew help annotate'.");
|
||||||
|
}
|
||||||
|
|
||||||
// Load the data.
|
// Load the data.
|
||||||
// Note: There is no filter.
|
// Note: There is no filter.
|
||||||
Interval filter;
|
Interval filter;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue