diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-07 00:37:07 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-08 00:35:27 +0100 |
commit | 0f5477c721c4cd8f1dbbf34eafd348bd248a1f79 (patch) | |
tree | 08faa88b1f4ac94d5d75f9914942fa37524e3417 /Userland/Libraries/LibSymbolication | |
parent | c837bd551e7e37860d2b61c5dbcd393120619178 (diff) | |
download | serenity-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/Libraries/LibSymbolication')
-rw-r--r-- | Userland/Libraries/LibSymbolication/Symbolication.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibSymbolication/Symbolication.cpp b/Userland/Libraries/LibSymbolication/Symbolication.cpp index ef88304429..07cc2205ec 100644 --- a/Userland/Libraries/LibSymbolication/Symbolication.cpp +++ b/Userland/Libraries/LibSymbolication/Symbolication.cpp @@ -83,7 +83,7 @@ Optional<Symbol> symbolicate(String const& path, FlatPtr address, IncludeSourceP if (!s_cache.contains(full_path)) { auto mapped_file = MappedFile::map(full_path); if (mapped_file.is_error()) { - dbgln("Failed to map {}: {}", full_path, mapped_file.error().string()); + dbgln("Failed to map {}: {}", full_path, mapped_file.error()); s_cache.set(full_path, {}); return {}; } |