hailin0 commented on code in PR #3493:
URL: 
https://github.com/apache/incubator-seatunnel/pull/3493#discussion_r1028655771


##########
seatunnel-core/seatunnel-flink-starter/src/main/java/org/apache/seatunnel/core/starter/flink/command/FlinkApiTaskExecuteCommand.java:
##########
@@ -46,7 +49,14 @@ public FlinkApiTaskExecuteCommand(FlinkCommandArgs 
flinkCommandArgs) {
     @Override
     public void execute() throws CommandExecuteException {
         Path configFile = FileUtils.getConfigPath(flinkCommandArgs);
-
+        if (!configFile.toFile().exists()) {
+            try {
+                throw new FileNotFoundException("Can't find config file: " + 
configFile);
+            } catch (FileNotFoundException e) {
+                log.error(ExceptionUtils.getMessage(e));
+                throw new SeaTunnelException(e);
+            }

Review Comment:
   ```suggestion
               String message = "Can't find config file: " + configFile;
               log.error(message);
               throw new SeaTunnelException(message);
   ```



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