diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-03 01:01:39 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-03 01:26:43 +0300 |
commit | dd0dee3afcfbabf6b1efe36136b5506857e76aef (patch) | |
tree | 61415642887a8f9bac04076746e1026b37edfe2e /unix | |
parent | 8bf8404c155f9ee9a2afd7f85c5f0a8aed1d2e2d (diff) | |
download | micropython-dd0dee3afcfbabf6b1efe36136b5506857e76aef.tar.gz micropython-dd0dee3afcfbabf6b1efe36136b5506857e76aef.zip |
unix: Properly print script filename in case of error.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/main.c b/unix/main.c index c9f38d6139..992ea1fec5 100644 --- a/unix/main.c +++ b/unix/main.c @@ -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; |