arjunashok commented on code in PR #144:
URL: https://github.com/apache/cassandra-sidecar/pull/144#discussion_r1913961818


##########
server-common/src/main/java/org/apache/cassandra/sidecar/common/server/exceptions/OperationalJobException.java:
##########
@@ -36,7 +36,8 @@ public static OperationalJobException wraps(Throwable 
throwable)
         }
         else
         {
-            return new OperationalJobException(throwable.getMessage(), 
throwable);
+            Throwable failingCause = throwable.getCause() != null ? 
throwable.getCause() : throwable;
+            return new OperationalJobException(failingCause.getMessage(), 
failingCause);

Review Comment:
   yep, simply wrapping the throwable as OperationalJobException should suffice



-- 
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]

Reply via email to