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/DevTools/HackStudio/HackStudioWidget.cpp | |
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/DevTools/HackStudio/HackStudioWidget.cpp')
-rw-r--r-- | Userland/DevTools/HackStudio/HackStudioWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/DevTools/HackStudio/HackStudioWidget.cpp b/Userland/DevTools/HackStudio/HackStudioWidget.cpp index 844bd9c32d..a97c6c6645 100644 --- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp +++ b/Userland/DevTools/HackStudio/HackStudioWidget.cpp @@ -685,12 +685,12 @@ NonnullRefPtr<GUI::Action> HackStudioWidget::create_delete_action() auto& error = result.error(); if (is_directory) { GUI::MessageBox::show(window(), - DeprecatedString::formatted("Removing directory {} from the project failed: {}", error.file, static_cast<Error const&>(error)), + DeprecatedString::formatted("Removing directory {} from the project failed: {}", file, error), "Removal failed"sv, GUI::MessageBox::Type::Error); } else { GUI::MessageBox::show(window(), - DeprecatedString::formatted("Removing file {} from the project failed: {}", error.file, static_cast<Error const&>(error)), + DeprecatedString::formatted("Removing file {} from the project failed: {}", file, error), "Removal failed"sv, GUI::MessageBox::Type::Error); } |