From 2f15ccd4d373a33898073a2d5f9153e45e9e51a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Fri, 9 Feb 2018 16:54:10 +0100 Subject: [PATCH] Passthrough error code from coverage helper --- misc/coverage-helper.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/misc/coverage-helper.cpp b/misc/coverage-helper.cpp index 9783d693..17218905 100644 --- a/misc/coverage-helper.cpp +++ b/misc/coverage-helper.cpp @@ -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; + } }