mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdExport: Throw an exception when the report is not found
The Context::getContext ().error only issues a log message, but allows the execution of the program. In order to interrupt the execution, an exception must be raised.
This commit is contained in:
parent
9ce366ddab
commit
99f4929dc5
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ int CmdExport::execute (std::string& output)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (selectedReport.empty ()) {
|
if (selectedReport.empty ()) {
|
||||||
Context::getContext ().error("Unable to find report that matches '" + words[0] + "'.");
|
throw format("Unable to find report that matches '{1}'.", words[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue