Skip to content

Commit

Permalink
Fixed error report error when more than one inf files found
Browse files Browse the repository at this point in the history
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1232 7335b38e-4728-0410-8992-fb3ffe349368
  • Loading branch information
jwang36 committed May 16, 2008
1 parent 298f19c commit 917e749
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Python/build/build.py
Expand Up @@ -1250,7 +1250,8 @@ def Main():
FileList = glob.glob(os.path.normpath(os.path.join(WorkingDirectory, '*.inf')))
FileNum = len(FileList)
if FileNum >= 2:
EdkLogger.error("build", None, "There are %d INF files in %s.\n" % (FileNum, WorkingDirectory))
EdkLogger.error("build", OPTION_NOT_SUPPORTED, "There are %d INF files in %s." % (FileNum, WorkingDirectory),
ExtraData="Please use '-m <INF_FILE_PATH>' switch to choose one.")
elif FileNum == 1:
Option.ModuleFile = NormFile(FileList[0], Workspace)

Expand Down

0 comments on commit 917e749

Please sign in to comment.