diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-07 01:31:00 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-08 00:35:27 +0100 |
commit | c7e62d448ca45c25841f57d1dcb9056b9d73da37 (patch) | |
tree | 05e17bbc2b3f9e63860bc1dc582e3d0bd6dd6a87 /Userland/Applications | |
parent | e253cf694e5c710303bb6560315e80e79d5664bd (diff) | |
download | serenity-c7e62d448ca45c25841f57d1dcb9056b9d73da37.zip |
LibCore: Use ErrorOr<T> for Core::File::remove()
This function returns a subclass of Error, which is now possible.
Diffstat (limited to 'Userland/Applications')
-rw-r--r-- | Userland/Applications/SpaceAnalyzer/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/SpaceAnalyzer/main.cpp b/Userland/Applications/SpaceAnalyzer/main.cpp index 43bc47ff7c..31b5fc1264 100644 --- a/Userland/Applications/SpaceAnalyzer/main.cpp +++ b/Userland/Applications/SpaceAnalyzer/main.cpp @@ -353,7 +353,7 @@ int main(int argc, char* argv[]) auto retry_message_result = GUI::MessageBox::show(window, String::formatted("Failed to delete \"{}\": {}. Retry?", deletion_result.error().file, - deletion_result.error().error_code.string()), + static_cast<Error const&>(deletion_result.error())), "Deletion failed", GUI::MessageBox::Type::Error, GUI::MessageBox::InputType::YesNo); |