Skip to content

Commit daa4e50

Browse files
committed
Fix test, improve error message
1 parent 34f3eb5 commit daa4e50

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/it/feature-start-2-it/verify.bsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import org.codehaus.plexus.util.FileUtils;
33
try {
44
File logFile = new File(basedir, "build.log");
55
String log = FileUtils.fileRead(logFile, "UTF-8");
6-
if (!log.contains("Feature name is blank.")) {
6+
if (!log.contains("The name of the branch is not valid or blank.")) {
77
System.out.println("feature-start build.log doesn't contain error text.");
88
return false;
99
}

src/main/java/com/amashchenko/maven/plugin/gitflow/GitFlowFeatureStartMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ private boolean validateBranchName(String name, String pattern, boolean failOnEr
176176
}
177177
}
178178
} else {
179-
final String error = "The name of the branch is not valid.";
179+
final String error = "The name of the branch is not valid or blank.";
180180
getLog().warn(error);
181181
valid = false;
182182

0 commit comments

Comments
 (0)