OSDN Git Service

[lit] Report the traceback when config import fails.
[android-x86/external-llvm.git] / utils / lit / lit / TestingConfig.py
index f4ff89f..925099c 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: