Skip to content

Commit 2f15ccd

Browse files
committed
Passthrough error code from coverage helper
1 parent 8f3fc15 commit 2f15ccd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

misc/coverage-helper.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,10 @@ int main(int argc, char** argv) {
9696
return lhs + ' ' + rhs;
9797
});
9898

99-
exec_cmd(cmdline, num, windowsify_path(catch_path(args[0])));
99+
try {
100+
return exec_cmd(cmdline, num, windowsify_path(catch_path(args[0])));
101+
} catch (std::exception const& ex) {
102+
std::cerr << "Helper failed with: '" << ex.what() << "'\n";
103+
return 12;
104+
}
100105
}

0 commit comments

Comments
 (0)