0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-43471 scons.py should not swallow ImportError

This commit is contained in:
Mathew Robinson 2019-10-01 14:11:47 +00:00 committed by evergreen
parent 0cee67ce69
commit 0a51d827a9

View File

@ -18,8 +18,9 @@ sys.path = [SCONS_DIR] + sys.path
try:
import SCons.Script
except ImportError:
except ImportError as import_err:
print("Could not import SCons from '%s'" % (SCONS_DIR))
print("ImportError:", import_err)
sys.exit(1)
SCons.Script.main()