mirror of
https://gitee.com/dcren/initializr.git
synced 2025-05-16 04:59:40 +08:00
Merge pull request #948 from rodrigolgraciano
* pr/948: Fix error message when a version could not be parsed Closes gh-948
This commit is contained in:
commit
6af13f6dde
@ -71,7 +71,7 @@ public class VersionParser {
|
|||||||
Matcher matcher = VERSION_REGEX.matcher(text.trim());
|
Matcher matcher = VERSION_REGEX.matcher(text.trim());
|
||||||
if (!matcher.matches()) {
|
if (!matcher.matches()) {
|
||||||
throw new InvalidVersionException("Could not determine version based on '" + text + "': version format "
|
throw new InvalidVersionException("Could not determine version based on '" + text + "': version format "
|
||||||
+ "is Minor.Major.Patch.Qualifier " + "(e.g. 1.0.5.RELEASE)");
|
+ "is Major.Minor.Patch.Qualifier " + "(e.g. 1.0.5.RELEASE)");
|
||||||
}
|
}
|
||||||
Integer major = Integer.valueOf(matcher.group(1));
|
Integer major = Integer.valueOf(matcher.group(1));
|
||||||
String minor = matcher.group(2);
|
String minor = matcher.group(2);
|
||||||
|
Loading…
Reference in New Issue
Block a user