From e0b7717a6a9f196c919490e130e2ffb0fb9e844a Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Thu, 13 Jul 2023 15:55:57 +0100 Subject: [PATCH] FileManager: Remove duplicate log statement Now that warnln() also outputs to the debug console, this would print the error twice. --- Userland/Applications/FileManager/DirectoryView.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Userland/Applications/FileManager/DirectoryView.cpp b/Userland/Applications/FileManager/DirectoryView.cpp index 2c848c7910..1154a62ad2 100644 --- a/Userland/Applications/FileManager/DirectoryView.cpp +++ b/Userland/Applications/FileManager/DirectoryView.cpp @@ -408,10 +408,8 @@ 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()) { - dbgln("Failed to open '{}': {}", real_path, result.error()); + if (auto result = Core::System::chdir(real_path); result.is_error()) warnln("Failed to open '{}': {}", real_path, result.error()); - } if (model().root_path() == real_path.to_deprecated_string()) { refresh();