mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 13:43:45 +03:00
FileManager: Remove duplicate log statement
Now that warnln() also outputs to the debug console, this would print the error twice.
This commit is contained in:
parent
d48c68cf3f
commit
e0b7717a6a
Notes:
sideshowbarker
2024-07-17 03:25:24 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/e0b7717a6a Pull-request: https://github.com/SerenityOS/serenity/pull/19997 Reviewed-by: https://github.com/gmta ✅
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user