diff options
author | Viktor Ferenczi <viktor@ferenczi.eu> | 2018-03-10 14:49:02 +0100 |
---|---|---|
committer | Viktor Ferenczi <viktor@ferenczi.eu> | 2018-03-10 15:13:01 +0100 |
commit | f0b49216955c87f3674d0a26c7f684264de0795f (patch) | |
tree | f4eac4f0604bfec96af9c856444283d014a5e487 | |
parent | aeb1c67b5b55c769256a8ffc2f9d9095d6fc74da (diff) |
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
-rw-r--r-- | SConstruct | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 4ef302cac4..e8f9ec2964 100644 --- a/SConstruct +++ b/SConstruct @@ -491,6 +491,7 @@ else: for x in platform_list: print("\t" + x) print("\nPlease run scons again with argument: platform=<string>") + sys.exit(255) screen = sys.stdout |