Fixed error report error when more than one inf files found
authorjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 16 May 2008 02:17:22 +0000 (02:17 +0000)
committerjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 16 May 2008 02:17:22 +0000 (02:17 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1232 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/build/build.py

index cb56cce..2a78c55 100644 (file)
@@ -1250,7 +1250,8 @@ def Main():
             FileList = glob.glob(os.path.normpath(os.path.join(WorkingDirectory, '*.inf')))\r
             FileNum = len(FileList)\r
             if FileNum >= 2:\r
-                EdkLogger.error("build", None, "There are %d INF files in %s.\n" % (FileNum, WorkingDirectory))\r
+                EdkLogger.error("build", OPTION_NOT_SUPPORTED, "There are %d INF files in %s." % (FileNum, WorkingDirectory),\r
+                                ExtraData="Please use '-m <INF_FILE_PATH>' switch to choose one.")\r
             elif FileNum == 1:\r
                 Option.ModuleFile = NormFile(FileList[0], Workspace)\r
 \r