You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2021/10/06 19:49:47 UTC

[GitHub] [nifi] Lehel44 commented on a change in pull request #5356: NIFI-9183: Add a command-line option to save status history

Lehel44 commented on a change in pull request #5356:
URL: https://github.com/apache/nifi/pull/5356#discussion_r723626168



##########
File path: nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/RunNiFi.java
##########
@@ -250,18 +252,13 @@ public static void main(String[] args) throws IOException, InterruptedException
                 }
                 dumpFile = new File(args[2]);
             } else {
-                try {
-                    Paths.get(args[1]);
-                } catch (InvalidPathException e) {
-                    System.err.println("Invalid filename. The command parameters are: status-history <number of days> <dumpFile>");
+                final boolean isValid = DumpFileValidator.validate(args[1]);

Review comment:
       Yes, I missed that. 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: issues-unsubscribe@nifi.apache.org

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