mirror of https://github.com/acidanthera/audk.git
Report error messages more precise.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1323 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
6e028650e7
commit
e485bb4bff
|
@ -412,7 +412,7 @@ public class GlobalData {
|
|||
return msaMap;
|
||||
}
|
||||
catch (Exception ex){
|
||||
throw new BuildException(ex.getMessage());
|
||||
throw new BuildException("Parsing MSA file [" + msaFile.getPath() + "] error. \n" + ex.getMessage() );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -598,7 +598,7 @@ public class GlobalData {
|
|||
return packageId;
|
||||
}
|
||||
}
|
||||
throw new BuildException("Can't find package GUID value " + packageId.getGuid() + " in the current workspace!");
|
||||
throw new BuildException("Can't find package GUID value " + packageId.toGuidString() + " in the current workspace!");
|
||||
}
|
||||
|
||||
public synchronized static ModuleIdentification refreshModuleIdentification(ModuleIdentification moduleId) throws BuildException {
|
||||
|
@ -606,7 +606,7 @@ public class GlobalData {
|
|||
moduleId.setPackage(packageId);
|
||||
Spd spd = spdTable.get(packageId);
|
||||
if (spd == null) {
|
||||
throw new BuildException("Can't find package GUID value " + packageId.getGuid() + " in the current workspace!");
|
||||
throw new BuildException("Can't find package GUID value " + packageId.toGuidString() + " in the current workspace!");
|
||||
}
|
||||
Set<ModuleIdentification> modules = spd.getModules();
|
||||
Iterator<ModuleIdentification> iter = modules.iterator();
|
||||
|
@ -619,7 +619,7 @@ public class GlobalData {
|
|||
return moduleId;
|
||||
}
|
||||
}
|
||||
throw new BuildException("Can't find module GUID value " + moduleId.getGuid() + " in package, " + packageId + ", in the current workspace!");
|
||||
throw new BuildException("Can't find module GUID value " + moduleId.toGuidString() + " in " + packageId + " under the current workspace!");
|
||||
}
|
||||
|
||||
public synchronized static Set<PackageIdentification> getPackageList(){
|
||||
|
|
|
@ -198,8 +198,7 @@ public class Spd {
|
|||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.setStackTrace(e.getStackTrace());
|
||||
throw new BuildException("Parse of the package description file [" + packageId.getSpdFile() + "] failed!\n"
|
||||
throw new BuildException("Parse of the package description file [" + packageFile.getPath() + "] failed!\n"
|
||||
+ e.getMessage());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -110,6 +110,15 @@ public class Identification {
|
|||
return version;
|
||||
}
|
||||
|
||||
public String toGuidString() {
|
||||
if (version == null || version.trim().equalsIgnoreCase("")) {
|
||||
return "[" + guid + "]";
|
||||
}
|
||||
else {
|
||||
return "[" + guid + "] and version [" + version + "]";
|
||||
}
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
@see java.lang.Object#hashCode()
|
||||
**/
|
||||
|
|
Loading…
Reference in New Issue