Commit dd0dee3a authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

unix: Properly print script filename in case of error.

parent 8bf8404c
......@@ -355,7 +355,7 @@ int main(int argc, char **argv) {
} else {
char *basedir = realpath(argv[a], NULL);
if (basedir == NULL) {
fprintf(stderr, "%s: can't open file '%s': [Errno %d] ", argv[0], argv[1], errno);
fprintf(stderr, "%s: can't open file '%s': [Errno %d] ", argv[0], argv[a], errno);
perror("");
// CPython exits with 2 in such case
ret = 2;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment