Author: toad
Date: 2008-02-09 14:27:00 +0000 (Sat, 09 Feb 2008)
New Revision: 17750
Modified:
trunk/freenet/src/freenet/node/ConfigurablePersister.java
Log:
Logging: show the filename when can't create the file.
Modified: trunk/freenet/src/freenet/node/ConfigurablePersister.java
===================================================================
--- trunk/freenet/src/freenet/node/ConfigurablePersister.java 2008-02-09
14:24:56 UTC (rev 17749)
+++ trunk/freenet/src/freenet/node/ConfigurablePersister.java 2008-02-09
14:27:00 UTC (rev 17750)
@@ -45,29 +45,29 @@
while(true) {
if(f.exists()) {
if(!(f.canRead() && f.canWrite()))
- throw new
InvalidConfigValueException(l10n("existsCannotReadWrite"));
+ throw new
InvalidConfigValueException(l10n("existsCannotReadWrite")+" : "+tmp);
break;
} else {
try {
if(!f.createNewFile()) {
if(f.exists()) continue;
- throw new
InvalidConfigValueException(l10n("doesNotExistCannotCreate"));
+ throw new
InvalidConfigValueException(l10n("doesNotExistCannotCreate")+" : "+tmp);
}
} catch (IOException e) {
- throw new
InvalidConfigValueException(l10n("doesNotExistCannotCreate"));
+ throw new
InvalidConfigValueException(l10n("doesNotExistCannotCreate")+" : "+tmp);
}
}
}
while(true) {
if(tmp.exists()) {
if(!(tmp.canRead() && tmp.canWrite()))
- throw new
InvalidConfigValueException(l10n("existsCannotReadWrite"));
+ throw new
InvalidConfigValueException(l10n("existsCannotReadWrite")+" : "+tmp);
break;
} else {
try {
tmp.createNewFile();
} catch (IOException e) {
- throw new
InvalidConfigValueException(l10n("doesNotExistCannotCreate"));
+ throw new
InvalidConfigValueException(l10n("doesNotExistCannotCreate")+" : "+tmp);
}
}
}