Skip to content

Commit

Permalink
Merge pull request #1143 from tronprotocol/exception_desc
Browse files Browse the repository at this point in the history
more exception desc when broadcast
  • Loading branch information
nanfengpo committed Jul 11, 2018
2 parents c22e056 + 9574128 commit 58a7b59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/tron/core/Wallet.java
Expand Up @@ -296,7 +296,7 @@ public GrpcAPI.Return broadcastTransaction(Transaction signaturedTransaction) {
} catch (ContractExeException e) {
logger.info(e.getMessage());
return builder.setResult(false).setCode(response_code.CONTRACT_EXE_ERROR)
.setMessage(ByteString.copyFromUtf8("contract execute error"))
.setMessage(ByteString.copyFromUtf8("contract execute error : " + e.getMessage()))
.build();
} catch (AccountResourceInsufficientException e) {
logger.info(e.getMessage());
Expand Down Expand Up @@ -326,7 +326,7 @@ public GrpcAPI.Return broadcastTransaction(Transaction signaturedTransaction) {
} catch (Exception e) {
logger.info("exception caught" + e.getMessage());
return builder.setResult(false).setCode(response_code.OTHER_ERROR)
.setMessage(ByteString.copyFromUtf8("other error"))
.setMessage(ByteString.copyFromUtf8("other error : " + e.getMessage()))
.build();
}
}
Expand Down

0 comments on commit 58a7b59

Please sign in to comment.