From 355e761a029ab86f9cdfa4376d3e705f7457d951 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Fri, 23 Dec 2022 13:59:27 +0100 Subject: LibCore: Let File::remove return a normal ErrorOr Having the file path in there is nice, but it makes us incompatible with comfortable error propagation in everything that isn't File::remove. --- Userland/Applications/SpaceAnalyzer/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Applications/SpaceAnalyzer') diff --git a/Userland/Applications/SpaceAnalyzer/main.cpp b/Userland/Applications/SpaceAnalyzer/main.cpp index cc895304a2..294e52d42a 100644 --- a/Userland/Applications/SpaceAnalyzer/main.cpp +++ b/Userland/Applications/SpaceAnalyzer/main.cpp @@ -368,8 +368,8 @@ ErrorOr serenity_main(Main::Arguments arguments) if (deletion_result.is_error()) { auto retry_message_result = GUI::MessageBox::show(window, DeprecatedString::formatted("Failed to delete \"{}\": {}. Retry?", - deletion_result.error().file, - static_cast(deletion_result.error())), + selected_node_path, + deletion_result.error()), "Deletion failed"sv, GUI::MessageBox::Type::Error, GUI::MessageBox::InputType::YesNo); -- cgit v1.2.3