andresbeckruiz commented on code in PR #349:
URL: https://github.com/apache/cassandra-sidecar/pull/349#discussion_r3275352625
##########
server/src/main/java/org/apache/cassandra/sidecar/job/OperationalJob.java:
##########
@@ -256,6 +263,18 @@ public Future<Void> asyncResult()
return executionPromise.future();
}
+ @Override
+ @Nullable
+ public String failureReason()
+ {
+ Future<Void> fut = asyncResult();
+ if (fut.isComplete() && fut.failed() && fut.cause() != null)
+ {
+ return fut.cause().getMessage();
Review Comment:
Fixed to use class name if exception is created without a message in
[94c6f7c](https://github.com/apache/cassandra-sidecar/pull/349/commits/94c6f7c807b6c0c538d1bf186b1f8b57180c8457)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]