diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-07 13:41:23 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-08 00:35:27 +0100 |
commit | fbe8f185b551c2149c188686e9d3bee642a52e7d (patch) | |
tree | 2fbcdd1721f09ce208e7ef1c17598b4226ed00d3 /Userland/DevTools/Profiler/main.cpp | |
parent | e841f3c283a113b07b70ac77cf31862dd7d0bcf4 (diff) | |
download | serenity-fbe8f185b551c2149c188686e9d3bee642a52e7d.zip |
Profiler: Replace Result<T, E> use with ErrorOr<T>
Diffstat (limited to 'Userland/DevTools/Profiler/main.cpp')
-rw-r--r-- | Userland/DevTools/Profiler/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/Profiler/main.cpp b/Userland/DevTools/Profiler/main.cpp index e87cb534ff..ac3e4e2991 100644 --- a/Userland/DevTools/Profiler/main.cpp +++ b/Userland/DevTools/Profiler/main.cpp @@ -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; } |