mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 05:16:10 +01:00
Passthrough error code from coverage helper
This commit is contained in:
parent
8f3fc15b73
commit
2f15ccd4d3
@ -96,5 +96,10 @@ int main(int argc, char** argv) {
|
||||
return lhs + ' ' + rhs;
|
||||
});
|
||||
|
||||
exec_cmd(cmdline, num, windowsify_path(catch_path(args[0])));
|
||||
try {
|
||||
return exec_cmd(cmdline, num, windowsify_path(catch_path(args[0])));
|
||||
} catch (std::exception const& ex) {
|
||||
std::cerr << "Helper failed with: '" << ex.what() << "'\n";
|
||||
return 12;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user