docs: print out invalid branch name

to help user to understand what the extension is expecting.

Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>

Closes scylladb/scylladb#19477
This commit is contained in:
Kefu Chai
2024-06-25 15:38:59 +08:00
committed by Botond Dénes
parent 3f23016cc0
commit def432617d

View File

@@ -136,7 +136,8 @@ class BaseVersionsTemplateDirective(Directive):
if current_version.startswith(prefix):
version = current_version
elif not stable_version.startswith(prefix):
LOGGER.error("Invalid stable_version format in conf.py. It should start with 'branch-'")
LOGGER.error("Invalid stable_version format '%s' in conf.py. It should start with 'branch-'",
stable_version)
else:
version = stable_version