diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-07 00:37:07 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-08 00:35:27 +0100 |
commit | 0f5477c721c4cd8f1dbbf34eafd348bd248a1f79 (patch) | |
tree | 08faa88b1f4ac94d5d75f9914942fa37524e3417 /Userland/Applications/Help/main.cpp | |
parent | c837bd551e7e37860d2b61c5dbcd393120619178 (diff) | |
download | serenity-0f5477c721c4cd8f1dbbf34eafd348bd248a1f79.zip |
AK: Use ErrorOr<T> for MappedFile factories
Replace Result<T, E> with ErrorOr<T> and propagate the error to callers.
Diffstat (limited to 'Userland/Applications/Help/main.cpp')
-rw-r--r-- | Userland/Applications/Help/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/Help/main.cpp b/Userland/Applications/Help/main.cpp index f7b7be2092..7ecac91743 100644 --- a/Userland/Applications/Help/main.cpp +++ b/Userland/Applications/Help/main.cpp @@ -139,7 +139,7 @@ int main(int argc, char* argv[]) auto source_result = model->page_view(path); if (source_result.is_error()) { - GUI::MessageBox::show(window, source_result.error().string(), "Failed to open man page", GUI::MessageBox::Type::Error); + GUI::MessageBox::show(window, String::formatted("{}", source_result.error()), "Failed to open man page", GUI::MessageBox::Type::Error); return; } |