X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Tools%2FSource%2FGenBuild%2Forg%2Ftianocore%2Fbuild%2Ffpd%2FFpdParserTask.java;h=1aaf6608f6a6d96fd35abf257b739f3f87067b28;hp=23be3307e15294e1a729d4c56891436aa411eabd;hb=391dbbb1c00daefe78e7e44499d048943ca866ae;hpb=3f7b510edbe3c10b533f36f490e591782d14e929 diff --git a/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java b/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java index 23be3307e1..1aaf6608f6 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java +++ b/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java @@ -130,7 +130,7 @@ public class FpdParserTask extends Task { // Remove !! if ( fpdFile == null) { if (platformName == null) { - throw new BuildException("FpdParserTask parameter error. Please specify platform name or FPD file. "); + throw new BuildException("FpdParserTask parameter error. Please specify either the platform name or FPD file!"); } platformId = GlobalData.getPlatformByName(platformName); fpdFile = platformId.getFpdFile(); @@ -300,7 +300,7 @@ public class FpdParserTask extends Task { bw.close(); fw.close(); } catch (Exception e) { - throw new BuildException("Generate FV file [" + fvFile.getPath() + "] failed. \n" + e.getMessage()); + throw new BuildException("Generation of the FV file [" + fvFile.getPath() + "] failed!\n" + e.getMessage()); } } } @@ -327,7 +327,7 @@ public class FpdParserTask extends Task { XmlObject doc = XmlObject.Factory.parse(fpdFile); if (!doc.validate()) { - throw new BuildException("Platform Surface Area file [" + fpdFile.getPath() + "] is invalid."); + throw new BuildException("Platform Surface Area file [" + fpdFile.getPath() + "] format is invalid!"); } Map map = new HashMap(); @@ -378,7 +378,7 @@ public class FpdParserTask extends Task { PlatformPcdPreprocessActionForBuilding ca = new PlatformPcdPreprocessActionForBuilding(); ca.perform(platformId.getFpdFile().getPath(), ActionMessage.NULL_MESSAGE_LEVEL); } catch (Exception e) { - throw new BuildException("Load FPD file [" + fpdFile.getPath() + "] error. \n" + e.getMessage()); + throw new BuildException("Parsing of the FPD file [" + fpdFile.getPath() + "] failed!\n" + e.getMessage()); } }