mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
AK: Use ErrorOr<T> for MappedFile factories
Replace Result<T, E> with ErrorOr<T> and propagate the error to callers.
This commit is contained in:
parent
c837bd551e
commit
0f5477c721
12 changed files with 54 additions and 64 deletions
|
@ -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 {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue