From 32d26ddaf7c321b3be196a272ce03522f70cf812 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Mon, 2 Nov 2020 18:49:15 -0800 Subject: [PATCH] The error message represented by errno will now be printed by run to stderr if exec() fails --- modes/run.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modes/run.c b/modes/run.c index c7918fd..804a07e 100644 --- a/modes/run.c +++ b/modes/run.c @@ -214,7 +214,7 @@ void wofi_run_exec(const char* cmd) { wofi_write_cache(mode, cmd); execl(cmd, cmd, NULL); } - fprintf(stderr, "%s cannot be executed\n", cmd); + fprintf(stderr, "%s cannot be executed %s\n", cmd, strerror(errno)); exit(errno); }