[lit] Report the traceback when config import fails.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 7 Aug 2013 21:43:34 +0000 (21:43 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 7 Aug 2013 21:43:34 +0000 (21:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187920 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/TestingConfig.py

index f4ff89f1cdb4777bd935fb985ee208ea83298298..925099ca5d22c234b0fdd191906a6d710327a027 100644 (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: