mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Return report exit code.
Continues to throw an exception and to return 255 if no output is produced. Signed-off-by: Los Patchos <44246129+lospatchos@users.noreply.github.com>
This commit is contained in:
parent
cbf87fc42e
commit
74a3d94f12
2 changed files with 4 additions and 1 deletions
|
@ -15,3 +15,6 @@ The 'report' command itself is optional, which means that these two commands are
|
|||
$ timew foo :week
|
||||
|
||||
This does however assume there is a 'foo' extension installed.
|
||||
|
||||
The return code is the return code of the extension.
|
||||
If the extension produces no output, 255 is returned.
|
||||
|
|
|
@ -127,7 +127,7 @@ int CmdReport (
|
|||
for (auto& line : output)
|
||||
std::cout << line << '\n';
|
||||
|
||||
return 0;
|
||||
return rc;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue