Better exception message for KeeperMiltiException [#MDBSUPPORT-204]

This commit is contained in:
Alexey Milovidov 2018-07-10 16:47:14 +03:00
parent 8e0ae12b4e
commit a26a0f5331

View File

@ -833,9 +833,10 @@ size_t KeeperMultiException::getFailedOpIndex(int32_t code, const Responses & re
KeeperMultiException::KeeperMultiException(int32_t code, const Requests & requests, const Responses & responses)
: KeeperException("Transaction failed at op #" + std::to_string(getFailedOpIndex(code, responses)), code),
: KeeperException("Transaction failed", code),
requests(requests), responses(responses), failed_op_index(getFailedOpIndex(code, responses))
{
addMessage("Op #" + std::to_string(failed_op_index) + ", path: " + getPathForFirstFailedOp());
}