mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 12:23:15 +00: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
|
@ -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 a new issue