We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13bc11a commit ffd60a0Copy full SHA for ffd60a0
commitizen/tags.py
@@ -146,7 +146,8 @@ def extract_version(self, tag: GitTag) -> Version:
146
m for regex in self.version_regexes if (m := regex.fullmatch(tag.name))
147
)
148
if not (m := next(candidates, None)):
149
- raise InvalidVersion()
+ regexes = ", ".join([str(r) for r in self.version_regexes])
150
+ raise InvalidVersion(f"Invalid version tag: '{tag.name}' does not match any configured tag format: {regexes}")
151
if "version" in m.groupdict():
152
return self.scheme(m.group("version"))
153
0 commit comments