Better error handling.
This commit is contained in:
parent
b16fb8a85c
commit
58644a6ef9
1 changed files with 6 additions and 0 deletions
|
@ -73,6 +73,12 @@ public class ConverterGUI implements FontConversion, FontConverterConstants {
|
||||||
"Nothing to do",
|
"Nothing to do",
|
||||||
JOptionPane.ERROR_MESSAGE);
|
JOptionPane.ERROR_MESSAGE);
|
||||||
return false;
|
return false;
|
||||||
|
} else if (42 == returnCode) {
|
||||||
|
JOptionPane.showMessageDialog(cd,
|
||||||
|
"Some of the document cannot be converted. The output\ncontains the problem glyphs. E-mail David Chandler\nwith your suggestions about the proper way to handle\nsuch a document.",
|
||||||
|
"Errors in Conversion",
|
||||||
|
JOptionPane.ERROR_MESSAGE);
|
||||||
|
return false;
|
||||||
} else if (0 != returnCode) {
|
} else if (0 != returnCode) {
|
||||||
JOptionPane.showMessageDialog(cd,
|
JOptionPane.showMessageDialog(cd,
|
||||||
"The conversion failed with code " + returnCode + "; please e-mail\ndchandler@users.sourceforge.net to learn what that means if\nyou can't find out from the output.",
|
"The conversion failed with code " + returnCode + "; please e-mail\ndchandler@users.sourceforge.net to learn what that means if\nyou can't find out from the output.",
|
||||||
|
|
Loading…
Reference in a new issue