forked from platformio/platformio-core
Added validation for project working environment names
This commit is contained in:
1 parent
331ff2dc9c
commit
269d5e0a3e
5 files changed
+45
-9
No files matched your search
@@ -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}]"
|
||||
Reference in new issue
Block a user