kopia lustrzana https://github.com/micropython/micropython
unix: Properly print script filename in case of error.
rodzic
8bf8404c15
commit
dd0dee3afc
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue