X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Tools%2FSource%2FGenBuild%2Forg%2Ftianocore%2Fbuild%2Fpcd%2Faction%2FPlatformPcdPreprocessActionForBuilding.java;h=a0a40eb4d1b83673b6b4bb528b194bf2ba7e3cdd;hp=0b2fd0b0109e17b5b8ad9bcf30f0e1eb879fee77;hb=391dbbb1c00daefe78e7e44499d048943ca866ae;hpb=3f7b510edbe3c10b533f36f490e591782d14e929 diff --git a/Tools/Source/GenBuild/org/tianocore/build/pcd/action/PlatformPcdPreprocessActionForBuilding.java b/Tools/Source/GenBuild/org/tianocore/build/pcd/action/PlatformPcdPreprocessActionForBuilding.java index 0b2fd0b010..a0a40eb4d1 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/pcd/action/PlatformPcdPreprocessActionForBuilding.java +++ b/Tools/Source/GenBuild/org/tianocore/build/pcd/action/PlatformPcdPreprocessActionForBuilding.java @@ -121,7 +121,7 @@ public class PlatformPcdPreprocessActionForBuilding extends PlatformPcdPreproces **/ public void execute() throws PlatformPcdPreprocessBuildException { - String errorMessageHeader = "Fail to initialize Pcd memory database for building. Because:"; + String errorMessageHeader = "Failed to initialize the Pcd memory database because: "; String errorsForPreprocess = null; // @@ -170,7 +170,7 @@ public class PlatformPcdPreprocessActionForBuilding extends PlatformPcdPreproces try { tokenSpaceStrRet = GlobalData.getGuidInfoFromCname(guidCName); } catch ( Exception e ) { - throw new PlatformPcdPreprocessException ("Failed get Guid CName " + guidCName + "from SPD file!"); + throw new PlatformPcdPreprocessException ("Failed to get Guid CName " + guidCName + " from the SPD file!"); } return tokenSpaceStrRet; } @@ -303,8 +303,8 @@ public class PlatformPcdPreprocessActionForBuilding extends PlatformPcdPreproces dynamicPcdBuildDefinitions = fpdDocInstance.getPlatformSurfaceArea().getDynamicPcdBuildDefinitions(); if (dynamicPcdBuildDefinitions == null) { - exceptionString = String.format("[FPD file error] There are no in FPD file but contains Dynamic type "+ - "PCD entry %s in module %s!", + exceptionString = String.format("[FPD file error] There are no elements in FPD file but there are Dynamic type "+ + "PCD entries %s in module %s!", token.cName, moduleName); putError(exceptionString); @@ -374,11 +374,11 @@ public class PlatformPcdPreprocessActionForBuilding extends PlatformPcdPreproces File file = null; if (fpdFilePath == null) { - throw new PlatformPcdPreprocessBuildException("WorkspacePath and FPDFileName should be blank for CollectPCDAtion!"); + throw new PlatformPcdPreprocessBuildException("WorkspacePath and FPDFileName should be empty for CollectPCDAtion!"); } if (fpdFilePath.length() == 0) { - throw new PlatformPcdPreprocessBuildException("WorkspacePath and FPDFileName should be blank for CollectPCDAtion!"); + throw new PlatformPcdPreprocessBuildException("WorkspacePath and FPDFileName should be empty for CollectPCDAtion!"); } file = new File(fpdFilePath);