From c7e62d448ca45c25841f57d1dcb9056b9d73da37 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 7 Nov 2021 01:31:00 +0100 Subject: LibCore: Use ErrorOr for Core::File::remove() This function returns a subclass of Error, which is now possible. --- Userland/Applications/SpaceAnalyzer/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Applications') 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(deletion_result.error())), "Deletion failed", GUI::MessageBox::Type::Error, GUI::MessageBox::InputType::YesNo); -- cgit v1.2.3