mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-25 02:38:59 +00:00
Profiler: Replace Result<T, E> use with ErrorOr<T>
This commit is contained in:
parent
e841f3c283
commit
fbe8f185b5
Notes:
sideshowbarker
2024-07-18 01:23:17 +09:00
Author: https://github.com/awesomekling
Commit: fbe8f185b5
3 changed files with 10 additions and 12 deletions
|
@ -68,7 +68,7 @@ int main(int argc, char** argv)
|
|||
|
||||
auto profile_or_error = Profile::load_from_perfcore_file(perfcore_file);
|
||||
if (profile_or_error.is_error()) {
|
||||
GUI::MessageBox::show(nullptr, profile_or_error.error(), "Profiler", GUI::MessageBox::Type::Error);
|
||||
GUI::MessageBox::show(nullptr, String::formatted("{}", profile_or_error.error()), "Profiler", GUI::MessageBox::Type::Error);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue