diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-12-23 13:59:27 +0100 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2022-12-23 10:38:14 -0500 |
commit | 355e761a029ab86f9cdfa4376d3e705f7457d951 (patch) | |
tree | 150bcadedcef92dd6742754520d2ee671295253f /Userland/Applications | |
parent | 7fa78b2456d510728567523a653110ea31899c3a (diff) | |
download | serenity-355e761a029ab86f9cdfa4376d3e705f7457d951.zip |
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.
Diffstat (limited to 'Userland/Applications')
-rw-r--r-- | Userland/Applications/SpaceAnalyzer/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<int> 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<Error const&>(deletion_result.error())), + selected_node_path, + deletion_result.error()), "Deletion failed"sv, GUI::MessageBox::Type::Error, GUI::MessageBox::InputType::YesNo); |