From e62cb539fddd30b38c32c4c52005d6893c264d06 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sat, 22 Jul 2023 09:00:13 -0400 Subject: [PATCH] Revert "FileManager: Remove duplicate log statement" This reverts commit e0b7717a6a9f196c919490e130e2ffb0fb9e844a. --- Userland/Applications/FileManager/DirectoryView.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Userland/Applications/FileManager/DirectoryView.cpp b/Userland/Applications/FileManager/DirectoryView.cpp index 1154a62ad2f..2c848c79101 100644 --- a/Userland/Applications/FileManager/DirectoryView.cpp +++ b/Userland/Applications/FileManager/DirectoryView.cpp @@ -408,8 +408,10 @@ bool DirectoryView::open(DeprecatedString const& path) return false; auto real_path = error_or_real_path.release_value(); - if (auto result = Core::System::chdir(real_path); result.is_error()) + 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()) { refresh();