Hisoka-X commented on code in PR #7465:
URL: https://github.com/apache/seatunnel/pull/7465#discussion_r1728194816
##########
seatunnel-connectors-v2/connector-cassandra/src/main/java/org/apache/seatunnel/connectors/seatunnel/cassandra/sink/CassandraSink.java:
##########
@@ -106,8 +107,11 @@ public void prepare(Config pluginConfig) throws
PrepareFailException {
throw new CassandraConnectorException(
SeaTunnelAPIErrorCode.CONFIG_VALIDATION_FAILED,
String.format(
- "PluginName: %s, PluginType: %s, Message: %s",
- getPluginName(), PluginType.SINK,
checkResult.getMsg()));
+ "PluginName: %s, PluginType: %s, Message: %s %s",
+ getPluginName(),
+ PluginType.SINK,
+ checkResult.getMsg(),
+ ExceptionUtils.getMessage(e)));
Review Comment:
```suggestion
"PluginName: %s, PluginType: %s, Message: %s",
getPluginName(),
PluginType.SINK,
ExceptionUtils.getMessage(e)));
```
##########
seatunnel-connectors-v2/connector-cassandra/src/main/java/org/apache/seatunnel/connectors/seatunnel/cassandra/sink/CassandraSink.java:
##########
@@ -106,8 +107,11 @@ public void prepare(Config pluginConfig) throws
PrepareFailException {
throw new CassandraConnectorException(
SeaTunnelAPIErrorCode.CONFIG_VALIDATION_FAILED,
String.format(
- "PluginName: %s, PluginType: %s, Message: %s",
- getPluginName(), PluginType.SINK,
checkResult.getMsg()));
+ "PluginName: %s, PluginType: %s, Message: %s %s",
+ getPluginName(),
+ PluginType.SINK,
+ checkResult.getMsg(),
+ ExceptionUtils.getMessage(e)));
Review Comment:
checkResult useless in here. Because if checkResult is failed, it never
reach here.
--
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]