Browse Source

Fix error message

pull/2066/merge
Stephane Nicoll 11 years ago
parent
commit
61223e709c
  1. 2
      spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerator.java

2
spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerator.java

@ -103,7 +103,7 @@ class ProjectGenerator { @@ -103,7 +103,7 @@ class ProjectGenerator {
while (entry != null) {
File file = new File(outputFolder, entry.getName());
if (file.exists() && !overwrite) {
throw new ReportableException(file.isDirectory() ? "Directory" : "File"
throw new ReportableException((file.isDirectory() ? "Directory" : "File")
+ " '" + file.getName()
+ "' already exists. Use --force if you want to overwrite or "
+ "specify an alternate location.");

Loading…
Cancel
Save