From abdca9b7661035029c67ff002bb5a7ac019b97c7 Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Mon, 22 May 2023 18:17:23 +0100 Subject: [PATCH] du: Print to stderr rather than stdout when directory can't be read --- Userland/Utilities/du.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Utilities/du.cpp b/Userland/Utilities/du.cpp index bdcdd0db00..97fc3fb112 100644 --- a/Userland/Utilities/du.cpp +++ b/Userland/Utilities/du.cpp @@ -143,7 +143,7 @@ ErrorOr print_space_usage(DeprecatedString const& path, DuOption const& du_ auto di = Core::DirIterator(path, Core::DirIterator::SkipParentAndBaseDir); if (di.has_error()) { auto error = di.error(); - outln("du: cannot read directory '{}': {}", path, error); + warnln("du: cannot read directory '{}': {}", path, error); return error; }