summaryrefslogtreecommitdiffstatshomepage
path: root/unix/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix/main.c')
-rw-r--r--unix/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/unix/main.c b/unix/main.c
index 741568f753..ae09b895d1 100644
--- a/unix/main.c
+++ b/unix/main.c
@@ -515,8 +515,7 @@ int main(int argc, char **argv) {
char *pathbuf = malloc(PATH_MAX);
char *basedir = realpath(argv[a], pathbuf);
if (basedir == NULL) {
- mp_printf(&mp_stderr_print, "%s: can't open file '%s': [Errno %d] ", argv[0], argv[a], errno);
- perror("");
+ mp_printf(&mp_stderr_print, "%s: can't open file '%s': [Errno %d] %s\n", argv[0], argv[a], errno, strerror(errno));
// CPython exits with 2 in such case
ret = 2;
break;