Author: jfrederic.clere(a)jboss.com
Date: 2008-12-11 03:26:22 -0500 (Thu, 11 Dec 2008)
New Revision: 2122
Modified:
trunk/build/unix/util/jlibtool.c
Log:
Print the command that was excuted when the command failed.
Modified: trunk/build/unix/util/jlibtool.c
===================================================================
--- trunk/build/unix/util/jlibtool.c 2008-12-11 03:46:49 UTC (rev 2121)
+++ trunk/build/unix/util/jlibtool.c 2008-12-11 08:26:22 UTC (rev 2122)
@@ -487,6 +487,13 @@
int statuscode;
waitpid(pid, &statuscode, 0);
if (WIFEXITED(statuscode)) {
+ int i;
+ /* It fails log what we were doing */
+ printf("%s failed\n", argv[0]);
+ for (i=0; argv[i]; i++) {
+ printf("%s ", argv[i]);
+ }
+ printf("\n");
return WEXITSTATUS(statuscode);
}
return 0;