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

(ticket #103)
This commit is contained in:
zzz
2010-10-31 14:52:09 +00:00
parent 0afabbd609
commit 07aa07981d

View File

@ -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>";