display the command that failed.
this is useful if the command-line had been suppressed.
This commit is contained in:
parent
35755efb8c
commit
ea878e8983
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: compat.c,v 1.47 2003/08/07 11:14:48 agc Exp $ */
|
/* $NetBSD: compat.c,v 1.48 2003/09/02 12:17:40 lukem Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
|
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
|
||||||
|
@ -70,14 +70,14 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef MAKE_BOOTSTRAP
|
#ifdef MAKE_BOOTSTRAP
|
||||||
static char rcsid[] = "$NetBSD: compat.c,v 1.47 2003/08/07 11:14:48 agc Exp $";
|
static char rcsid[] = "$NetBSD: compat.c,v 1.48 2003/09/02 12:17:40 lukem Exp $";
|
||||||
#else
|
#else
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)compat.c 8.2 (Berkeley) 3/19/94";
|
static char sccsid[] = "@(#)compat.c 8.2 (Berkeley) 3/19/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: compat.c,v 1.47 2003/08/07 11:14:48 agc Exp $");
|
__RCSID("$NetBSD: compat.c,v 1.48 2003/09/02 12:17:40 lukem Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
#endif
|
#endif
|
||||||
|
@ -355,6 +355,7 @@ CompatRunCommand(ClientData cmdp, ClientData gnp)
|
||||||
} else if (WIFEXITED(reason)) {
|
} else if (WIFEXITED(reason)) {
|
||||||
status = WEXITSTATUS(reason); /* exited */
|
status = WEXITSTATUS(reason); /* exited */
|
||||||
if (status != 0) {
|
if (status != 0) {
|
||||||
|
printf ("\n*** Command failed: %s\n", cmd);
|
||||||
printf ("*** Error code %d", status);
|
printf ("*** Error code %d", status);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue