mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 13:43:45 +03:00
du: Print to stderr rather than stdout when directory can't be read
This commit is contained in:
parent
5dfb4e8066
commit
abdca9b766
Notes:
sideshowbarker
2024-07-17 20:33:50 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/abdca9b766 Pull-request: https://github.com/SerenityOS/serenity/pull/18984 Reviewed-by: https://github.com/gmta ✅
@ -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…
Reference in New Issue
Block a user