Fixed an incorrect use of EdkLogger.error()
authorjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 30 Nov 2007 09:52:54 +0000 (09:52 +0000)
committerjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 30 Nov 2007 09:52:54 +0000 (09:52 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@899 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/build/build.py

index 5b52bab..8186f52 100644 (file)
@@ -721,7 +721,8 @@ class Build():
                 FileList = glob.glob(os.path.normpath(os.path.join(WorkingDirectory, '*.dsc')))\r
                 FileNum = len(FileList)\r
                 if FileNum >= 2:\r
-                    EdkLogger.error("build", None, "There are %d DSC files in %s.\n" % (FileNum, WorkingDirectory))\r
+                    EdkLogger.error("build", OPTION_MISSING, \r
+                                    ExtraData="There are %d DSC files in %s. Use '-p' to specify one.\n" % (FileNum, WorkingDirectory))\r
                 elif FileNum == 1:\r
                     self.PlatformFile = NormFile(FileList[0], self.WorkspaceDir)\r
             else:\r