mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 23:48:11 +00:00
LibCore: Port Command::write_lines to ErrorOr
Keeping this in line with Command::write.
This commit is contained in:
parent
5dd93474ee
commit
125145c682
3 changed files with 6 additions and 8 deletions
|
@ -126,7 +126,8 @@ static ErrorOr<HashMap<size_t, TestResult>> run_test_files(Span<DeprecatedString
|
|||
}
|
||||
auto& runner_process = runner_process_or_error.value();
|
||||
|
||||
if (!runner_process->write_lines(files.slice(test_index))) {
|
||||
if (auto maybe_error = runner_process->write_lines(files.slice(test_index)); maybe_error.is_error()) {
|
||||
warnln("Runner process failed writing writing file input: {}", maybe_error.error());
|
||||
fail_all_after();
|
||||
return results;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue