docs: raise exception when user adds apostrophy

This commit is contained in:
ZanzyTHEbar 2023-02-27 13:12:53 +00:00
parent f0bd092c6a
commit e1577b8759

View File

@ -130,4 +130,14 @@ def customName(project, version, commit, branch):
)
try:
flags = env["BUILD_FLAGS"]
my_flags = env.ParseFlags(flags)
handleGit()
except ValueError as ex:
# look for apostrophes and warn the user
sys.stdout.write(RED)
print(
"[Warning]: Apostrophes are not allowed in the build flags. Please remove them from the \033[;1m\033[1;36m`user-config.ini` \033[1;31mfile and try again."
)
raise Exception("Could not parse BUILD_FLAGS - Possible apostrophy used in user configuration", ex)