mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-16 08:29:43 +00:00
[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:
parent
bd9bb2c515
commit
9c2c660e12
@ -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
Block a user