Add new-line characters in error message to make them shorter in multi-lines.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2125 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jlin16 2006-12-21 08:27:00 +00:00
parent fb96878ec4
commit d56b1906f1
2 changed files with 5 additions and 5 deletions

View File

@ -1184,7 +1184,7 @@ public class FpdFileContents {
//
// ToDo Error
//
throw new PcdDeclNotFound("No Declaration for PCD Entry " + msaPcd.getCName() + " used by Module "
throw new PcdDeclNotFound("No Declaration for PCD Entry " + msaPcd.getCName() + "\n used by Module "
+ mi.getName() + " or its Library Instances.");
}
//
@ -3703,10 +3703,10 @@ class PcdItemTypeConflictException extends Exception {
PcdItemTypeConflictException (String pcdName, String info) {
ModuleIdentification mi = WorkspaceProfile.getModuleId(info);
if (mi != null) {
details = pcdName + " ItemType Conflicts with " + mi.getName() + " in Pkg " + mi.getPackageId().getName();
details = pcdName + " ItemType Conflicts with " + mi.getName() + "\n in Pkg " + mi.getPackageId().getName();
}
else {
details = pcdName + " ItemType Conflicts with " + info;
details = pcdName + " ItemType Conflicts with \n" + info;
}
}
@ -3729,7 +3729,7 @@ class PcdItemTypeConflictException extends Exception {
moduleInfo2 = info2;
}
details = pcdName + " ItemType Conflicts in " + moduleInfo1 + " and " + moduleInfo2;
details = pcdName + " ItemType Conflicts in \n" + moduleInfo1 + "\n and " + moduleInfo2;
}
public String getMessage() {

View File

@ -1189,7 +1189,7 @@ public class FpdModuleSA extends JDialog implements ActionListener {
addLibInstance (libMi);
}
catch (Exception exception) {
JOptionPane.showMessageDialog(frame, "Adding Instance" + libMi.getName() + ": "+ exception.getMessage());
JOptionPane.showMessageDialog(frame, "Adding Instance " + libMi.getName() + " : \n"+ exception.getMessage());
return;
}
docConsole.setSaved(false);