From f0b49216955c87f3674d0a26c7f684264de0795f Mon Sep 17 00:00:00 2001 From: Viktor Ferenczi Date: Sat, 10 Mar 2018 14:49:02 +0100 Subject: [PATCH] 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 --- SConstruct | 1 + 1 file changed, 1 insertion(+) diff --git a/SConstruct b/SConstruct index 4ef302cac49..e8f9ec2964b 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=") + sys.exit(255) screen = sys.stdout