Updated the generate blockchain config error message when output dir exists (#652)

Signed-off-by: viraj <blockchaintrainer.in@gmail.com>
pull/698/head
Blockchain-Trainer 5 years ago committed by GitHub
parent e917a35e80
commit 187ecb7e39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      besu/src/main/java/org/hyperledger/besu/cli/subcommands/operator/GenerateBlockchainConfig.java

@ -260,7 +260,7 @@ class GenerateBlockchainConfig implements Runnable {
&& outputDirectory.isDirectory()
&& outputDirectory.list() != null
&& outputDirectory.list().length > 0) {
throw new IllegalArgumentException("Output directory must be empty.");
throw new IllegalArgumentException("Output directory already exists.");
} else if (!outputDirectory.exists()) {
Files.createDirectory(outputDirectoryPath);
}

Loading…
Cancel
Save