From 50443bf86335a8929477da4b5f0847f698ff827f Mon Sep 17 00:00:00 2001 From: Prasanth Ullattil Date: Mon, 15 Jun 2009 11:11:32 +0200 Subject: 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 --- src/tools/idc/main.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v0.12