Fixed compile error

This commit is contained in:
rjy7 2010-05-20 13:23:20 +00:00
parent a005d26f1c
commit dbafad9e9e

View file

@ -174,10 +174,6 @@ public class ContactMailController extends FreeMarkerHttpServlet {
FileWriter fw = new FileWriter(context.getRealPath(EMAIL_BACKUP_FILE_PATH),true); FileWriter fw = new FileWriter(context.getRealPath(EMAIL_BACKUP_FILE_PATH),true);
PrintWriter outFile = new PrintWriter(fw); PrintWriter outFile = new PrintWriter(fw);
writeBackupCopy(outFile, msgText, spamReason); writeBackupCopy(outFile, msgText, spamReason);
}
catch (IOException e){
LOG.error("Can't open file to write email backup");
}
// Set the smtp host // Set the smtp host
Properties props = System.getProperties(); Properties props = System.getProperties();
@ -208,6 +204,10 @@ public class ContactMailController extends FreeMarkerHttpServlet {
outFile.flush(); outFile.flush();
outFile.close(); outFile.close();
}
catch (IOException e){
LOG.error("Can't open file to write email backup");
}
// Message was sent successfully // Message was sent successfully
if (statusMsg == null && spamReason == null) { if (statusMsg == null && spamReason == null) {