mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
TW-1697: Inconsistent failure mode on invalid task id
- Thanks to Daniel Shahaf.
This commit is contained in:
parent
ea82d88816
commit
f6a7a8720e
2 changed files with 65 additions and 37 deletions
|
@ -75,6 +75,12 @@ int CmdEdit::execute (std::string&)
|
|||
std::vector <Task> filtered;
|
||||
filter.subset (filtered);
|
||||
|
||||
if (! filtered.size ())
|
||||
{
|
||||
context.footnote (STRING_FEEDBACK_NO_MATCH);
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Find number of matching tasks.
|
||||
for (auto& task : filtered)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue