Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Set message type for invalid transaction
Browse files Browse the repository at this point in the history
To communicate the rejection reason thrown by the TP,
the 'message' attribute of Invalid Transaction Exception
is populated along with the 'transaction_id'

Signed-off-by: raghav.aneja <[email protected]>
  • Loading branch information
raneja14 committed Feb 28, 2019
1 parent 12ee5cd commit d5bbbe5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/transaction_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ void TransactionProcessorImpl::HandleProcessingRequest(const void* msg,
<< e.what());
response.set_status(
TpProcessResponse::INVALID_TRANSACTION);
response.set_message(e.what());
} catch(...) {
LOG4CXX_ERROR(logger, "applicator->Apply unknown error");
response.set_status(
Expand Down

0 comments on commit d5bbbe5

Please sign in to comment.