[lit] Report the traceback when config import fails.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187920 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2013-08-07 21:43:34 +00:00
parent bd9bb2c515
commit 9c2c660e12

View File

@ -74,6 +74,11 @@ class TestingConfig:
# return control without error.
if e.args:
raise
except:
import traceback
litConfig.fatal(
'unable to parse config file %r, traceback: %s' % (
path, traceback.format_exc()))
f.close()
else:
if mustExist: