mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
CmdStart should not redirect to CmdTrack but issue an error message when called with range
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
cc82f468e1
commit
91c246c42f
1 changed files with 2 additions and 1 deletions
|
@ -52,7 +52,8 @@ int CmdStart (
|
|||
}
|
||||
else if (interval.is_ended ())
|
||||
{
|
||||
return CmdTrack (cli, rules, database, journal);
|
||||
throw std::string ("The start command does not accept ranges but only a single datetime. "
|
||||
"Perhaps you want the track command?.");
|
||||
}
|
||||
|
||||
auto latest = getLatestInterval (database);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue