mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:47:44 +00:00
LibDiff: Make Diff::from_text fallible
This commit is contained in:
parent
23df5748f6
commit
ee92378b80
5 changed files with 22 additions and 17 deletions
|
@ -254,7 +254,7 @@ static ErrorOr<TestResult> run_test(HeadlessWebContentView& view, StringView inp
|
|||
else
|
||||
outln("\nTest failed: {}", input_path);
|
||||
|
||||
auto hunks = Diff::from_text(expectation, actual);
|
||||
auto hunks = TRY(Diff::from_text(expectation, actual));
|
||||
auto out = TRY(Core::File::standard_output());
|
||||
for (auto const& hunk : hunks) {
|
||||
TRY(out->write_formatted("Hunk: "));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue