diff options
-rw-r--r-- | Userland/Libraries/LibGUI/FileSystemModel.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/FileSystemModel.cpp b/Userland/Libraries/LibGUI/FileSystemModel.cpp index e74f90bceb..89840db8b2 100644 --- a/Userland/Libraries/LibGUI/FileSystemModel.cpp +++ b/Userland/Libraries/LibGUI/FileSystemModel.cpp @@ -657,9 +657,10 @@ bool FileSystemModel::fetch_thumbnail_for(Node const& node) [this, path, weak_this](auto thumbnail_or_error) { if (thumbnail_or_error.is_error()) { s_thumbnail_cache.set(path, nullptr); - return; + dbgln("Failed to load thumbnail for {}: {}", path, thumbnail_or_error.error()); + } else { + s_thumbnail_cache.set(path, thumbnail_or_error.release_value()); } - s_thumbnail_cache.set(path, thumbnail_or_error.release_value()); // The model was destroyed, no need to update // progress or call any event handlers. |