summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-03-16 14:50:58 +0100
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-03-16 14:08:51 +0000
commit81ab89d7fbfdde25e999e2a0cba505afff812462 (patch)
treed5d40cbf7211fd40f920bd1cf091df3c30161d01 /src/tools
parent7e3a5fd664b02a537b7f5dcd73840c5c7a437519 (diff)
idc: Print error message when process returns non-null exit code.
Change-Id: I6b3d4e143f6f592428cec05933bb260f941d3a7b Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/idc/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/idc/main.cpp b/src/tools/idc/main.cpp
index 350f0da..51611df 100644
--- a/src/tools/idc/main.cpp
+++ b/src/tools/idc/main.cpp
@@ -139,6 +139,8 @@ static bool runWithQtInEnvironment(const QString &cmd)
}
CloseHandle(pi.hThread);
CloseHandle(pi.hProcess);
+ if (exitCode)
+ fprintf(stderr, "\"%s\" returned exit code: %ul\n", qPrintable(cmd), exitCode);
return exitCode == 0;
}