Skip to content

Commit

Permalink
FABJ-454: Typo fix for SDChaincode Exception Msg
Browse files Browse the repository at this point in the history
Exception Msg when there is no SDChaincode has type and could lead to misunderstanding, therefore changed.

Signed-off-by: chill37 <tk.chill@gmail.com>
Change-Id: If6ade6af13c0b373ae1d793e8d805fe5babe74ef
  • Loading branch information
chill37 committed Jul 15, 2019
1 parent 83801ea commit f054cce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/hyperledger/fabric/sdk/Channel.java
Original file line number Diff line number Diff line change
Expand Up @@ -4440,11 +4440,11 @@ public Collection<ProposalResponse> sendTransactionProposalToEndorsers(Transacti
logger.trace(format("Channel %s chaincode %s discovered: %s", name, chaincodeName, "" + sdChaindcode));

if (null == sdChaindcode) {
throw new ServiceDiscoveryException(format("Channel %s failed to find and endorsers for chaincode %s", name, chaincodeName));
throw new ServiceDiscoveryException(format("Channel %s failed to find any endorsers for chaincode %s", name, chaincodeName));
}

if (sdChaindcode.getLayouts() == null || sdChaindcode.getLayouts().isEmpty()) {
throw new ServiceDiscoveryException(format("Channel %s failed to find and endorsers for chaincode %s no layouts found.", name, chaincodeName));
throw new ServiceDiscoveryException(format("Channel %s failed to find any endorsers for chaincode %s no layouts found.", name, chaincodeName));
}

SDChaindcode sdChaindcodeEndorsementCopy = new SDChaindcode(sdChaindcode); //copy. no ignored.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ SDChaindcode discoverEndorserEndpoint(TransactionContext transactionContext, fin
Map<String, SDChaindcode> dchaindcodeMap = discoverEndorserEndpoints(transactionContext, ccl);
final SDChaindcode sdChaindcode = dchaindcodeMap.get(name);
if (null == sdChaindcode) {
throw new ServiceDiscoveryException(format("Failed to find and endorsers for chaincode %s. See logs for details", name));
throw new ServiceDiscoveryException(format("Failed to find any endorsers for chaincode %s. See logs for details", name));
}
return sdChaindcode;
}
Expand Down

0 comments on commit f054cce

Please sign in to comment.