wuchunfu commented on code in PR #3557:
URL: 
https://github.com/apache/incubator-seatunnel/pull/3557#discussion_r1032760684


##########
seatunnel-connectors-v2/connector-iotdb/src/main/java/org/apache/seatunnel/connectors/seatunnel/iotdb/source/IoTDBSource.java:
##########
@@ -64,7 +66,11 @@ public void prepare(Config pluginConfig) throws 
PrepareFailException {
             result = CheckConfigUtil.checkAllExists(pluginConfig, 
NODE_URLS.key());
 
             if (!result.isSuccess()) {
-                throw new PrepareFailException(getPluginName(), 
PluginType.SOURCE, "host and port and node urls are both empty");
+                throw new 
IotdbConnectorException(SeaTunnelAPIErrorCode.CONFIG_VALIDATION_FAILED,
+                    String.format("PluginName: %s, PluginType: %s, Message: 
%s",
+                        getPluginName(), PluginType.SOURCE,
+                        "host and port and node urls are both empty")

Review Comment:
   Done, Thank you for your reminder



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

Reply via email to