mirror of
https://github.com/rofl0r/proxychains-ng.git
synced 2024-12-22 04:08:47 +00:00
main: add more luser-friendly error message when execvp fails
closes #423 closes #412
This commit is contained in:
parent
2739fb5416
commit
a12cf0a516
@ -154,7 +154,8 @@ int main(int argc, char *argv[]) {
|
|||||||
old_val ? old_val : "");
|
old_val ? old_val : "");
|
||||||
putenv(buf);
|
putenv(buf);
|
||||||
execvp(argv[start_argv], &argv[start_argv]);
|
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;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user