diff options
author | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2009-06-15 09:11:32 (GMT) |
---|---|---|
committer | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2009-06-15 09:14:56 (GMT) |
commit | 50443bf86335a8929477da4b5f0847f698ff827f (patch) | |
tree | 4ea1abb06fdeb692680440e63c9c44a2724efd71 /src | |
parent | 6f3330e7fa110df65152a20cd4ab28a38988fb85 (diff) | |
download | Qt-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')
-rw-r--r-- | src/tools/idc/main.cpp | 3 |
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; |