forked from OSchip/llvm-project
[lit] Report the traceback when config import fails.
llvm-svn: 187920
This commit is contained in:
parent
df1ed9b886
commit
16606887c4
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue