Skip to content

Commit

Permalink
Updates test runner to append error messages if morethan one is recie…
Browse files Browse the repository at this point in the history
…ved from the `CLI`
  • Loading branch information
aanorbel committed Oct 16, 2023
1 parent e8c97c7 commit 207e77d
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,14 @@ private void setDataUsage(EventResult.Value value, Result result) {
}

private void setFailureMsg(EventResult.Value value, Result result) {
if (result == null) return;
result.failure_msg = value.failure;
if (result == null) {
return;
}
if (result.failure_msg == null) {
result.failure_msg = value.failure;
} else {
result.failure_msg = String.format("%s\n\n%s", result.failure_msg, value.failure);
}
result.save();
}

Expand Down

0 comments on commit 207e77d

Please sign in to comment.