Skip to content

Commit

Permalink
Updated the generate blockchain config error message when output dir …
Browse files Browse the repository at this point in the history
…exists (#652)

Signed-off-by: viraj <blockchaintrainer.in@gmail.com>
  • Loading branch information
blockchain-trainer authored Apr 9, 2020
1 parent e917a35 commit 187ecb7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ private void handleOutputDirectory() throws IOException {
&& 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);
}
Expand Down

0 comments on commit 187ecb7

Please sign in to comment.