diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-08-05 18:17:00 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-08-05 18:17:04 +0200 |
commit | 657edb8eb9ab2fdef60d9c5d23a4c3093a64d859 (patch) | |
tree | a7055146e30551104480efd5f80898e21ae6aa5c /src/Program.c | |
parent | 7e8a2f23a40e6374ddfb551920257846021e86fa (diff) |
Add manga chapter viewing
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; } |