From 187ecb7e39b7ac963a5107c394646d01c5a4e061 Mon Sep 17 00:00:00 2001 From: Blockchain-Trainer <46881425+blockchain-trainer@users.noreply.github.com> Date: Thu, 9 Apr 2020 13:38:42 +0530 Subject: [PATCH] Updated the generate blockchain config error message when output dir exists (#652) Signed-off-by: viraj --- .../besu/cli/subcommands/operator/GenerateBlockchainConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/besu/src/main/java/org/hyperledger/besu/cli/subcommands/operator/GenerateBlockchainConfig.java b/besu/src/main/java/org/hyperledger/besu/cli/subcommands/operator/GenerateBlockchainConfig.java index 32a235e04c..4ddeb10480 100644 --- a/besu/src/main/java/org/hyperledger/besu/cli/subcommands/operator/GenerateBlockchainConfig.java +++ b/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); }