Make sure that an error is raised for the 'module
builds' phase of the build.
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1169
7335b38e-4728-0410-8992-
fb3ffe349368
ExitFlag.set()\r
BuildTask.WaitForComplete()\r
\r
+ #\r
+ # Check for build error, and raise exception if one\r
+ # has been signaled.\r
+ #\r
+ if BuildTask.HasError():\r
+ EdkLogger.error("build", BUILD_ERROR, BuildTask.GetErrorMessage())\r
+\r
# Generate FD image if there's a FDF file found\r
if self.Fdf != '' and self.Target in ["", "all", "fds"]:\r
LaunchCommand(Wa.BuildCommand + ("fds",), Wa.MakeFileDir)\r