Fixed error report error when more than one inf files found
[people/mcb30/basetools.git] / 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