Author: volodya
Date: 2006-09-24 12:28:58 +0000 (Sun, 24 Sep 2006)
New Revision: 10509
Modified:
trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java
Log:
Fix the error reporting when NIM failed (box wasn't shown)
Modified: trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java 2006-09-24
11:51:44 UTC (rev 10508)
+++ trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java 2006-09-24
12:28:58 UTC (rev 10509)
@@ -268,7 +268,7 @@
content.addChild("a", "href", "/" +
key.getKeyType() + "@" + key.getGuessableKey(), key.getKeyType() + "@" +
key.getGuessableKey());
content.addChild("#", " has been
inserted successfully.");
} catch (InserterException e) {
- HTMLNode infobox =
ctx.getPageMaker().getInfobox("infobox-error", "Insert Failed");
+ HTMLNode infobox =
contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-error", "Insert
Failed"));
content =
ctx.getPageMaker().getContentNode(infobox);
content.addChild("#", "The insert
failed with the message: " + e.getMessage());
content.addChild("br");