From 25510542b23d26ec9759b150fc2d5329d605c390 Mon Sep 17 00:00:00 2001 From: dchandler Date: Thu, 26 Jun 2003 22:48:05 +0000 Subject: [PATCH] Now with a nicer error message in one case. --- source/org/thdl/tib/input/ConverterGUI.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/org/thdl/tib/input/ConverterGUI.java b/source/org/thdl/tib/input/ConverterGUI.java index b4bf512..05e7e7f 100644 --- a/source/org/thdl/tib/input/ConverterGUI.java +++ b/source/org/thdl/tib/input/ConverterGUI.java @@ -44,7 +44,7 @@ public class ConverterGUI implements FontConversion, FontConverterConstants { // DLC FIXMEDOC returns true on success public boolean doConversion(ConvertDialog cd, File oldFile, File newFile, - String whichConversion) { + String whichConversion) { PrintStream ps; try { returnCode @@ -55,6 +55,11 @@ public class ConverterGUI implements FontConversion, FontConverterConstants { ps.close(); } catch (FileNotFoundException e) { returnCode = 39; + JOptionPane.showMessageDialog(cd, + "The conversion failed because either the old\nfile could not be found or the new file could\nnot be written (because it was open\nelsewhere or read-only or what have you).", + "Conversion failed", + JOptionPane.ERROR_MESSAGE); + return false; } if (0 != returnCode) { JOptionPane.showMessageDialog(cd,