From 61223e709cb436e30470bc03e0cfaa162315da8d Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Fri, 5 Dec 2014 14:42:51 +0100 Subject: [PATCH] Fix error message --- .../springframework/boot/cli/command/init/ProjectGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerator.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerator.java index 87940383a4..e84748fbc5 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerator.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerator.java @@ -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.");