Commit 9e6eb99c authored by Piotr Sowinski's avatar Piotr Sowinski
Browse files

Merge branch 'NXCALS-5111-swallowed-original-exception-message' into 'develop'

NXCALS-5111 original exception message displayed

Closes NXCALS-5111

See merge request acc-logging-team/nxcals!1295
parents aad1ab63 07b0494e
......@@ -35,8 +35,8 @@ public class PublicationRetryer<T> implements Retryer<T> {
if (accept) {
this.submitRetry(msg, ret, cause, 1);
} else {
String throwable = cause == null ? "null" : cause.getClass().toString();
ret.completeExceptionally(new IllegalStateException("Not recoverable publishing error " + throwable));
String causeMessage = cause == null ? "null" : cause.getMessage();
ret.completeExceptionally(new IllegalStateException("Not recoverable publishing error: " + causeMessage, cause));
}
return ret;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment