Added validation for project working environment names

This commit is contained in:
Ivan Kravets committed 2023-03-20 15:00:22 -06:00
1 parent 331ff2dc9c
commit 269d5e0a3e
5 files changed
+45 -9

No files matched your search

+7
View File
@@ -43,5 +43,12 @@ class UnknownEnvNamesError(ProjectError, UserSideException):
MESSAGE = "Unknown environment names '{0}'. Valid names are '{1}'"
class InvalidEnvNameError(ProjectError, UserSideException):
MESSAGE = (
"Invalid environment name '{0}'. The name can contain "
"alphanumeric, underscore, and hyphen characters (a-z, 0-9, -, _)"
)
class ProjectOptionValueError(ProjectError, UserSideException):
MESSAGE = "{0} for option `{1}` in section [{2}]"