mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:18:12 +00:00
LibCore: Use ErrorOr<T> for Core::File::remove()
This function returns a subclass of Error, which is now possible.
This commit is contained in:
parent
e253cf694e
commit
c7e62d448c
5 changed files with 17 additions and 14 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue