+\r
+ if (!found) {\r
+ //\r
+ // All library's PCD should instanted in module's <ModuleSA> who\r
+ // use this library instance. If not, give errors.\r
+ // \r
+ throw new BuildActionException (String.format("[PCD Autogen Error] Module %s use library instance %s, the PCD %s " +\r
+ "is required by this library instance, but can not find " +\r
+ "it in the %s's <ModuleSA> in FPD file!",\r
+ dbManager.CurrentModuleName,\r
+ moduleName,\r
+ pcdNameArray[index],\r
+ dbManager.CurrentModuleName\r
+ ));\r
+ }\r