From cf04de188e9d236df950185f40194dbc3a864f10 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Wed, 15 Jan 2020 14:07:25 +0300 Subject: [PATCH] Userland: Print which path we failed to ls --- Userland/ls.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/ls.cpp b/Userland/ls.cpp index 2ff32a9c29..313bb0a6da 100644 --- a/Userland/ls.cpp +++ b/Userland/ls.cpp @@ -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; }