Skip to content

Commit

Permalink
[FABJ-502]-Add exception log
Browse files Browse the repository at this point in the history
Signed-off-by: lesleyannj <lesleyannj@hotmail.com>
  • Loading branch information
lesleyannjordan committed Dec 16, 2019
1 parent 3f5261c commit af532b1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/org/hyperledger/fabric/sdk/Channel.java
Original file line number Diff line number Diff line change
Expand Up @@ -5549,7 +5549,7 @@ private <T> T logCompletion(final String message, final T result, final Throwabl
return result;
}

private CompletableFuture<TransactionEvent> doSendTransaction(Collection<ProposalResponse> proposalResponses,
private CompletableFuture<TransactionEvent> doSendTransaction(Collection<? extends ProposalResponse> proposalResponses,
TransactionOptions transactionOptions) {

try {
Expand Down Expand Up @@ -5727,13 +5727,11 @@ private CompletableFuture<TransactionEvent> doSendTransaction(Collection<Proposa

CompletableFuture<TransactionEvent> ret = new CompletableFuture<>();
ret.completeExceptionally(lException != null ? new Exception(emsg, lException) : new Exception(emsg));
logger.error(emsg);
return ret;
}
} catch (Exception e) {
CompletableFuture<TransactionEvent> future = new CompletableFuture<>();
future.completeExceptionally(e);
logger.error(e);
return future;
}
}
Expand Down

0 comments on commit af532b1

Please sign in to comment.