You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/04/21 10:40:57 UTC

[GitHub] [incubator-doris] morningman commented on a diff in pull request #8982: [feature] (image tool) support image load tool

morningman commented on code in PR #8982:
URL: https://github.com/apache/incubator-doris/pull/8982#discussion_r855042244


##########
fe/fe-core/src/main/java/org/apache/doris/PaloFe.java:
##########
@@ -303,6 +316,23 @@ private static void checkCommandLineOptions(CommandLineOptions cmdLineOpts) {
             } else {
                 System.exit(-1);
             }
+        } else if (cmdLineOpts.runImageTool()) {
+            File imageFile = new File(cmdLineOpts.getImagePath());
+            if (!imageFile.exists()) {
+                System.out.println("image does not exist: " + imageFile.getAbsolutePath() + " . Please put an absolute path instead");
+                System.exit(0);

Review Comment:
   ```suggestion
                   System.exit(-1);
   ```



-- 
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: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org