mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 04:14:59 +00:00
Fixed versionbump.py to raise an error message with the invalid version string.
This commit is contained in:
parent
adaf2e55be
commit
ba4c2cf981
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ def main():
|
|||
|
||||
new_version_str = args.new_version
|
||||
if not re.match(r'^\d+\.\d+\.\d+$', new_version_str):
|
||||
raise ValueError("Invalid version format, must be x.y.z")
|
||||
raise ValueError(f"Invalid version format, must be x.y.z: {new_version_str}")
|
||||
|
||||
new_version = version.parse(new_version_str)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue