X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Tools%2FSource%2FGenBuild%2Forg%2Ftianocore%2Fbuild%2Fglobal%2FSpd.java;h=8772385e4b47ae7ed5ed255f6602aea007b94b95;hp=3e09f58fba1864028d1476e45e336094c0dee665;hb=391dbbb1c00daefe78e7e44499d048943ca866ae;hpb=3f7b510edbe3c10b533f36f490e591782d14e929;ds=sidebyside diff --git a/Tools/Source/GenBuild/org/tianocore/build/global/Spd.java b/Tools/Source/GenBuild/org/tianocore/build/global/Spd.java index 3e09f58fba..8772385e4b 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/global/Spd.java +++ b/Tools/Source/GenBuild/org/tianocore/build/global/Spd.java @@ -93,7 +93,7 @@ public class Spd { // If specified package file not exists // if ( ! packageFile.exists()) { - throw new BuildException("Package file [" + packageFile.getPath() + "] not exists. "); + throw new BuildException("Package file [" + packageFile.getPath() + "] does not exist!"); } try { XmlObject spdDoc = XmlObject.Factory.parse(packageFile); @@ -101,7 +101,7 @@ public class Spd { // Verify SPD file, if is invalid, throw Exception // if (! spdDoc.validate()) { - throw new BuildException("Package Surface Area file [" + packageFile.getPath() + "] is invalid. "); + throw new BuildException("Package Surface Area file [" + packageFile.getPath() + "] format is invalid!"); } // We can change Map to XmlObject Map spdDocMap = new HashMap(); @@ -127,7 +127,7 @@ public class Spd { moduleId.setPackage(packageId); moduleId.setMsaFile(msaFile); if (msaInfo.containsKey(moduleId)) { - throw new BuildException("Find two modules with the same GUID and Version in " + packageId + ". They are [" + msaInfo.get(moduleId) + "] and [" + msaFile + "] "); + throw new BuildException("Found two modules with the same GUID and Version in package " + packageId + ".\nThey are module [" + msaInfo.get(moduleId) + "] and MSA file [" + msaFile + "]!"); } msaInfo.put(moduleId, msaFile); } @@ -199,7 +199,7 @@ public class Spd { } catch (Exception e) { e.setStackTrace(e.getStackTrace()); - throw new BuildException("Parse package description file [" + packageId.getSpdFile() + "] Error.\n" + throw new BuildException("Parse of the package description file [" + packageId.getSpdFile() + "] failed!\n" + e.getMessage()); } }