Author: toad
Date: 2006-09-02 13:39:34 +0000 (Sat, 02 Sep 2006)
New Revision: 10347

Modified:
   trunk/freenet/src/freenet/config/FilePersistentConfig.java
Log:
improve config log messages

Modified: trunk/freenet/src/freenet/config/FilePersistentConfig.java
===================================================================
--- trunk/freenet/src/freenet/config/FilePersistentConfig.java  2006-09-02 
13:13:53 UTC (rev 10346)
+++ trunk/freenet/src/freenet/config/FilePersistentConfig.java  2006-09-02 
13:39:34 UTC (rev 10347)
@@ -150,10 +150,13 @@
                if(!tempFilename.renameTo(filename)) {
                        if(!filename.delete()) {
                                Logger.error(this, "Could not delete old config 
file "+filename);
+                               System.err.println("Could not delete old config 
file "+filename+" - we need to delete it in order to replace it with the new 
config file "+tempFilename);
                        }
                        if(!tempFilename.renameTo(filename)) {
                                Logger.error(this, "Could not move new config 
file "+tempFilename+" over old "+filename);
-                               System.err.println("Written and moved 
"+filename);
+                               System.err.println("Could not move new config 
file "+tempFilename+" over old "+filename);
+                       } else {
+                               System.err.println("Written "+tempFilename+" 
and moved to "+filename);
                        }
                } else {
                        System.err.println("Written "+filename);


Reply via email to