mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibCore: Use ErrorOr<T> for Core::File::open()
This commit is contained in:
parent
fac2550143
commit
a7f1f1c34b
Notes:
sideshowbarker
2024-07-18 08:59:31 +09:00
Author: https://github.com/awesomekling
Commit: a7f1f1c34b
24 changed files with 42 additions and 48 deletions
|
@ -178,7 +178,7 @@ private:
|
|||
auto file_name = m_input_file_chain.take_first();
|
||||
auto file_or_error = Core::File::open(file_name, Core::OpenMode::ReadOnly);
|
||||
if (file_or_error.is_error()) {
|
||||
warnln("Input file {} could not be opened: {}", file_name, file_or_error.error().string());
|
||||
warnln("Input file {} could not be opened: {}", file_name, file_or_error.error());
|
||||
return {};
|
||||
}
|
||||
m_input_file = file_or_error.value();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue