Passthrough error code from coverage helper

This commit is contained in:
Martin Hořeňovský 2018-02-09 16:54:10 +01:00
parent 8f3fc15b73
commit 2f15ccd4d3

View File

@ -96,5 +96,10 @@ int main(int argc, char** argv) {
return lhs + ' ' + rhs; 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;
}
} }