Skip to content

Commit

Permalink
clarify max length error (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
Franr authored Sep 12, 2023
1 parent 48add55 commit 85a14e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion leverage/modules/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,10 @@ def validate_config(config: dict):
Run a battery of validations over the config file (project.yaml).
"""
if not re.match(r"^[a-z0-9]([a-z0-9]|-){1,23}[a-z0-9]$", config["project_name"]):
raise ExitError(1, "Project name is not valid. Only lowercase alphanumeric characters and hyphens are allowed.")
raise ExitError(
1,
"Project name is not valid. Only lowercase alphanumeric characters and hyphens are allowed. It must be 25 characters long at most.",
)

return True

Expand Down

0 comments on commit 85a14e7

Please sign in to comment.