[llvm] r187920 - [lit] Report the traceback when config import fails.
Daniel Dunbar
daniel at zuster.org
Wed Aug 7 14:43:34 PDT 2013
Author: ddunbar
Date: Wed Aug 7 16:43:34 2013
New Revision: 187920
URL: http://llvm.org/viewvc/llvm-project?rev=187920&view=rev
Log:
[lit] Report the traceback when config import fails.
Modified:
llvm/trunk/utils/lit/lit/TestingConfig.py
Modified: llvm/trunk/utils/lit/lit/TestingConfig.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestingConfig.py?rev=187920&r1=187919&r2=187920&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestingConfig.py (original)
+++ llvm/trunk/utils/lit/lit/TestingConfig.py Wed Aug 7 16:43:34 2013
@@ -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:
More information about the llvm-commits
mailing list