CORDA-1494: Minor - improve error message when max retries reached for notarisation (#3355)

This commit is contained in:
Andrius Dagys 2018-06-13 09:04:05 +01:00 committed by Rick Parker
parent 7fec9df99e
commit d5d46c674d

View File

@ -206,7 +206,11 @@ class StaffedFlowHospital {
if (history.notDischargedForTheSameThingMoreThan(newError.maxRetries, this)) {
return Diagnosis.DISCHARGE
} else {
log.warn("\"Maximum number of retries reached for timed flow ${flowFiber.javaClass}")
val errorMsg = "Maximum number of retries reached for flow ${flowFiber.snapshot().flowLogic.javaClass}." +
"If the flow involves notarising a transaction, this usually means that the notary is being overloaded and" +
"unable to service requests fast enough. Please try again later."
newError.setMessage(errorMsg)
log.warn(errorMsg)
}
}
return Diagnosis.NOT_MY_SPECIALTY