Avoid confusing traceback on attempting build without platform option
A traceback is printed on invoking scons without the compulsory platform option. This is confusing, since the problem is not in the code. Fix is to explicitly exit from the build right after printing the error message, so the missing env variable cannot cause the traceback later. Fixes #17414
This commit is contained in:
parent
aeb1c67b5b
commit
f0b4921695
1 changed files with 1 additions and 0 deletions
|
@ -491,6 +491,7 @@ else:
|
||||||
for x in platform_list:
|
for x in platform_list:
|
||||||
print("\t" + x)
|
print("\t" + x)
|
||||||
print("\nPlease run scons again with argument: platform=<string>")
|
print("\nPlease run scons again with argument: platform=<string>")
|
||||||
|
sys.exit(255)
|
||||||
|
|
||||||
|
|
||||||
screen = sys.stdout
|
screen = sys.stdout
|
||||||
|
|
Loading…
Reference in a new issue