summaryrefslogtreecommitdiffstats
path: root/src/tools/idc/main.cpp
diff options
context:
space:
mode:
authorPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-06-15 09:11:32 (GMT)
committerPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-06-15 09:14:56 (GMT)
commit50443bf86335a8929477da4b5f0847f698ff827f (patch)
tree4ea1abb06fdeb692680440e63c9c44a2724efd71 /src/tools/idc/main.cpp
parent6f3330e7fa110df65152a20cd4ab28a38988fb85 (diff)
downloadQt-50443bf86335a8929477da4b5f0847f698ff827f.zip
Qt-50443bf86335a8929477da4b5f0847f698ff827f.tar.gz
Qt-50443bf86335a8929477da4b5f0847f698ff827f.tar.bz2
Add detailed warning when idc fails.
When idc fails to dump IDL, the input executable name is now displayed on the commnad line. Reviewed-by:TrustMe
Diffstat (limited to 'src/tools/idc/main.cpp')
-rw-r--r--src/tools/idc/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/idc/main.cpp b/src/tools/idc/main.cpp
index 8d2f0cc..07f9a82 100644
--- a/src/tools/idc/main.cpp
+++ b/src/tools/idc/main.cpp
@@ -331,6 +331,9 @@ int runIdc(int argc, char **argv)
switch(res) {
case S_OK:
break;
+ case E_FAIL:
+ fprintf(stderr, "IDL generation failed trying to run program %s!\n", (const char*)input.toLocal8Bit().data());
+ return res;
case -1:
fprintf(stderr, "Couldn't open %s for writing!\n", (const char*)idlfile.toLocal8Bit().data());
return res;