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

Rethrow the Exception in SendHandler in after getting privacy group. #243

Merged
merged 1 commit into from
Jun 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -129,6 +130,9 @@ public void handle(RoutingContext routingContext) {
.fail(new OrionException(OrionErrorCode.ENCLAVE_PRIVACY_GROUP_MISSING, "privacy group not found"));
return result;
}
}).exceptionally(e -> {
handleFailure(routingContext, e);
return Optional.empty();
});
}
}
Expand Down