mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 09:36:08 +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
|
@ -51,7 +51,7 @@ Result<bool, String> Workbook::load(const StringView& filename)
|
|||
sb.append("Failed to open ");
|
||||
sb.append(filename);
|
||||
sb.append(" for reading. Error: ");
|
||||
sb.append(file_or_error.error().string());
|
||||
sb.appendff("{}", file_or_error.error());
|
||||
|
||||
return sb.to_string();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue