mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-11-04 15:39:42 +08:00
docs: raise exception when user adds apostrophy
This commit is contained in:
parent
f0bd092c6a
commit
e1577b8759
@ -130,4 +130,14 @@ def customName(project, version, commit, branch):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
try:
|
||||||
|
flags = env["BUILD_FLAGS"]
|
||||||
|
my_flags = env.ParseFlags(flags)
|
||||||
handleGit()
|
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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user