]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Tests/CheckPythonSyntax.py
Sync basetools' source and binary files with r1707 of the basetools project.
[mirror_edk2.git] / BaseTools / Tests / CheckPythonSyntax.py
index 67d2ca4756b1842bbfd0b5863b9ea1ad35b11b8b..47eb81fce82955cb17f741e55c8177b6b728607d 100644 (file)
@@ -29,8 +29,8 @@ class Tests(TestTools.BaseToolsTest):
     def SingleFileTest(self, filename):
         try:
             py_compile.compile(filename, doraise=True)
-        except:
-            self.fail('syntax error: ' + filename)
+        except Exception, e:
+            self.fail('syntax error: %s, Error is %s' % (filename, str(e)))
 
 def MakePythonSyntaxCheckTests():
     def GetAllPythonSourceFiles():