Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

Commit

Permalink
Merge pull request #244 from Puneetha17/throwException
Browse files Browse the repository at this point in the history
Rethrow the Exception in SendHandler
  • Loading branch information
ekellstrand authored Jun 19, 2019
2 parents d588a0a + a6d9a5f commit 45be035
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ public void handle(RoutingContext routingContext) {
privacyGroupStorage.put(privacyGroupPayload).thenApply((result) -> {
send(routingContext, sendRequest, fromKey, toKeys, privacyGroupPayload);
return result;
}).exceptionally(e -> {
handleFailure(routingContext, e);
return null;
});
} else if (sendRequest.privacyGroupId().isPresent()) {
privacyGroupStorage.get(sendRequest.privacyGroupId().get()).thenApply((result) -> {
Expand Down

0 comments on commit 45be035

Please sign in to comment.