Profiler: Replace Result<T, E> use with ErrorOr<T>

This commit is contained in:
Andreas Kling 2021-11-07 13:41:23 +01:00
commit fbe8f185b5
Notes: sideshowbarker 2024-07-18 01:23:17 +09:00
3 changed files with 10 additions and 12 deletions

View file

@ -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;
}