From a12cf0a5162dd4238410bbc3ca9f906a110d5972 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Mon, 10 Jan 2022 11:44:26 +0000 Subject: [PATCH] main: add more luser-friendly error message when execvp fails closes #423 closes #412 --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index ac10f89..af78ef2 100644 --- a/src/main.c +++ b/src/main.c @@ -154,7 +154,8 @@ int main(int argc, char *argv[]) { old_val ? old_val : ""); putenv(buf); execvp(argv[start_argv], &argv[start_argv]); - perror("proxychains can't load process...."); + fprintf(stderr, "proxychains: can't load process '%s'.", argv[start_argv]); + perror(" (hint: it's probably a typo)"); return EXIT_FAILURE; }