mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:08:12 +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);
|
auto di = Core::DirIterator(path, Core::DirIterator::SkipParentAndBaseDir);
|
||||||
if (di.has_error()) {
|
if (di.has_error()) {
|
||||||
auto error = di.error();
|
auto error = di.error();
|
||||||
outln("du: cannot read directory '{}': {}", path, error);
|
warnln("du: cannot read directory '{}': {}", path, error);
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue