summaryrefslogtreecommitdiff
path: root/Userland/Services/CrashDaemon/main.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-07 00:37:07 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-08 00:35:27 +0100
commit0f5477c721c4cd8f1dbbf34eafd348bd248a1f79 (patch)
tree08faa88b1f4ac94d5d75f9914942fa37524e3417 /Userland/Services/CrashDaemon/main.cpp
parentc837bd551e7e37860d2b61c5dbcd393120619178 (diff)
downloadserenity-0f5477c721c4cd8f1dbbf34eafd348bd248a1f79.zip
AK: Use ErrorOr<T> for MappedFile factories
Replace Result<T, E> with ErrorOr<T> and propagate the error to callers.
Diffstat (limited to 'Userland/Services/CrashDaemon/main.cpp')
-rw-r--r--Userland/Services/CrashDaemon/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/CrashDaemon/main.cpp b/Userland/Services/CrashDaemon/main.cpp
index 120c5fd5de..d9f258d88c 100644
--- a/Userland/Services/CrashDaemon/main.cpp
+++ b/Userland/Services/CrashDaemon/main.cpp
@@ -74,7 +74,7 @@ int main()
auto file_or_error = MappedFile::map(coredump_path);
if (file_or_error.is_error()) {
- dbgln("Unable to map coredump {}: {}", coredump_path, file_or_error.error().string());
+ dbgln("Unable to map coredump {}: {}", coredump_path, file_or_error.error());
continue;
}