mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +00:00
AK: Use ErrorOr<T> for MappedFile factories
Replace Result<T, E> with ErrorOr<T> and propagate the error to callers.
This commit is contained in:
parent
c837bd551e
commit
0f5477c721
Notes:
sideshowbarker
2024-07-18 01:24:11 +09:00
Author: https://github.com/awesomekling
Commit: 0f5477c721
12 changed files with 54 additions and 64 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue