We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0b1c77 commit d666aa0Copy full SHA for d666aa0
commitizen/tags.py
@@ -146,7 +146,9 @@ 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()
+ raise InvalidVersion(
150
+ f"Invalid version tag: '{tag.name}' does not match any configured tag format"
151
+ )
152
if "version" in m.groupdict():
153
return self.scheme(m.group("version"))
154
0 commit comments