Skip to content

Commit

Permalink
Fix incorrect contextual error report
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Mar 27, 2024
1 parent 70c819c commit 8874d58
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,12 @@ private Future<JsonObject> compute() {
.map(s -> s.get(context.owner()))
.collect(Collectors.toList());

return Future.all(futures).map(compositeFuture -> {
return context.succeededFuture().compose(v -> Future.all(futures).map(compositeFuture -> {
// Merge the different futures
JsonObject json = new JsonObject();
futures.forEach(future -> json.mergeIn((JsonObject) future.result(), true));
return json;
}).map(json -> processor != null ? processor.apply(json) : json);
}).map(json -> processor != null ? processor.apply(json) : json));
}

/**
Expand Down

0 comments on commit 8874d58

Please sign in to comment.