[lit] Report the traceback when config import fails.

llvm-svn: 187920
This commit is contained in:
Daniel Dunbar 2013-08-07 21:43:34 +00:00
parent ffb7ba128b
commit c0857e132c

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: