frankgh commented on code in PR #60:
URL: https://github.com/apache/cassandra-sidecar/pull/60#discussion_r1260278189
##########
src/main/java/org/apache/cassandra/sidecar/utils/HttpExceptions.java:
##########
@@ -54,7 +54,7 @@ public static HttpException cassandraServiceUnavailable()
*/
public static HttpException wrapHttpException(HttpResponseStatus status,
Throwable cause)
{
- return wrapHttpException(status, null, cause);
+ return wrapHttpException(status, cause != null ? cause.getMessage() :
null, cause);
Review Comment:
makes sense, I have addressed this feedback. Thanks
--
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]