mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:47:35 +00:00
Profiler: Replace Result<T, E> use with ErrorOr<T>
This commit is contained in:
parent
e841f3c283
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