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:
Los Patchos 2021-07-21 10:26:57 +02:00 committed by Thomas Lauf
parent cbf87fc42e
commit 74a3d94f12
2 changed files with 4 additions and 1 deletions

View file

@ -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.

View file

@ -127,7 +127,7 @@ int CmdReport (
for (auto& line : output)
std::cout << line << '\n';
return 0;
return rc;
}
////////////////////////////////////////////////////////////////////////////////