I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 07aa0798 authored by zzz's avatar zzz
Browse files

* logs.jsp: Add message if wrapper log not found

                (ticket #103)
parent 0afabbd6
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ public class LogsHelper extends HelperBase { ...@@ -31,7 +31,7 @@ public class LogsHelper extends HelperBase {
} }
String str = FileUtil.readTextFile(f.getAbsolutePath(), 250, false); String str = FileUtil.readTextFile(f.getAbsolutePath(), 250, false);
if (str == null) if (str == null)
return ""; return _("File not found") + ": <b><code>" + f.getAbsolutePath() + "</code></b>";
else { else {
str = str.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;"); str = str.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;");
return _("File location") + ": <b><code>" + f.getAbsolutePath() + "</code></b> <pre>" + str + "</pre>"; return _("File location") + ": <b><code>" + f.getAbsolutePath() + "</code></b> <pre>" + str + "</pre>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment