diff options
Diffstat (limited to 'src/Program.c')
-rw-r--r-- | src/Program.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Program.c b/src/Program.c index 39957ed..38a602f 100644 --- a/src/Program.c +++ b/src/Program.c @@ -66,7 +66,15 @@ int exec_program(const char **args, ProgramOutputCallback output_callback, void int exit_status = WEXITSTATUS(status); if(exit_status != 0) { - fprintf(stderr, "Failed to execute program, exit status %d\n", exit_status); + fprintf(stderr, "Failed to execute program ("); + const char **arg = args; + while(*arg) { + if(arg != args) + fputc(' ', stderr); + fprintf(stderr, "'%s'", *arg); + ++arg; + } + fprintf(stderr, "), exit status %d\n", exit_status); result = -exit_status; goto cleanup; } |