mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
du: Print to stderr rather than stdout when directory can't be read
This commit is contained in:
parent
5dfb4e8066
commit
abdca9b766
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue