diff options
Diffstat (limited to 'Userland/Applications/FileManager/main.cpp')
-rw-r--r-- | Userland/Applications/FileManager/main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Userland/Applications/FileManager/main.cpp b/Userland/Applications/FileManager/main.cpp index 5dc9a53bb5..e4b6898712 100644 --- a/Userland/Applications/FileManager/main.cpp +++ b/Userland/Applications/FileManager/main.cpp @@ -176,8 +176,10 @@ void do_paste(String const& target_directory, GUI::Window* window) source_paths.append(url.path()); } - if (!source_paths.is_empty()) - run_file_operation(file_operation, source_paths, target_directory, window); + if (!source_paths.is_empty()) { + if (auto result = run_file_operation(file_operation, source_paths, target_directory, window); result.is_error()) + dbgln("Failed to paste files: {}", result.error()); + } } void do_create_link(Vector<String> const& selected_file_paths, GUI::Window* window) |