diff --git a/Userland/Applications/FileManager/DirectoryView.cpp b/Userland/Applications/FileManager/DirectoryView.cpp index 17f6b2999f..2c848c7910 100644 --- a/Userland/Applications/FileManager/DirectoryView.cpp +++ b/Userland/Applications/FileManager/DirectoryView.cpp @@ -408,9 +408,9 @@ bool DirectoryView::open(DeprecatedString const& path) return false; auto real_path = error_or_real_path.release_value(); - if (Core::System::chdir(real_path).is_error()) { - perror("chdir"); - return false; + if (auto result = Core::System::chdir(real_path); result.is_error()) { + dbgln("Failed to open '{}': {}", real_path, result.error()); + warnln("Failed to open '{}': {}", real_path, result.error()); } if (model().root_path() == real_path.to_deprecated_string()) {