Userland: Print which path we failed to ls

This commit is contained in:
Sergey Bugaev 2020-01-15 14:07:25 +03:00 committed by Andreas Kling
parent 4417bd97d7
commit cf04de188e
Notes: sideshowbarker 2024-07-19 10:00:48 +09:00

View file

@ -295,7 +295,7 @@ int do_file_system_object_long(const char* path)
return 0;
return 2;
}
fprintf(stderr, "CDirIterator: %s\n", di.error_string());
fprintf(stderr, "%s: %s\n", path, di.error_string());
return 1;
}
@ -370,7 +370,7 @@ int do_file_system_object_short(const char* path)
return 0;
return 2;
}
fprintf(stderr, "CDirIterator: %s\n", di.error_string());
fprintf(stderr, "%s: %s\n", path, di.error_string());
return 1;
}