summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorTim Ledbetter <timledbetter@gmail.com>2023-05-22 18:17:23 +0100
committerJelle Raaijmakers <jelle@gmta.nl>2023-05-23 01:45:10 +0200
commitabdca9b7661035029c67ff002bb5a7ac019b97c7 (patch)
tree3e53f541b0d1406cafa56fb32d26180580d979a9 /Userland
parent5dfb4e8066701de991854268f1f6d49d735141c9 (diff)
downloadserenity-abdca9b7661035029c67ff002bb5a7ac019b97c7.zip
du: Print to stderr rather than stdout when directory can't be read
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Utilities/du.cpp2
1 files changed, 1 insertions, 1 deletions
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<u64> 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;
}