Neue Zeile bei mehreren Fehlern

This commit is contained in:
2026-07-13 11:51:02 +02:00
parent f6fef62bdd
commit 85de22ca9a
2 changed files with 12 additions and 6 deletions

View File

@@ -41,6 +41,10 @@
th {
background: #eee;
}
.msg {
white-space: pre-wrap;
}
</style>
</head>
<body>
@@ -119,7 +123,7 @@
rows += '<tr>'
+ '<td>' + esc(svc.Name) + '</td>'
+ '<td class="' + cls + '">' + symbol + '</td>'
+ '<td>' + esc(svc.Message) + '</td>'
+ '<td class="msg">' + esc(svc.Message) + '</td>'
+ '</tr>';
}
document.getElementById('services').innerHTML = rows;

View File

@@ -13,6 +13,8 @@ namespace BeWo.Service.Status
{
private static readonly log4net.ILog log = LoggerUtils.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
private readonly string joinChar = Environment.NewLine;
protected string Name { get; set; }
protected List<Func<string>> Checkups { get; } = new List<Func<string>>();
@@ -81,7 +83,7 @@ namespace BeWo.Service.Status
{
Name = Name,
IsOk = errors.Count == 0,
Message = errors.Count == 0 ? "OK" : string.Join("; ", errors)
Message = errors.Count == 0 ? "OK" : string.Join(joinChar, errors)
};
}
@@ -91,7 +93,7 @@ namespace BeWo.Service.Status
.Where(x => string.IsNullOrWhiteSpace(MergedConfig.GetSetting(x)))
.Select(x => $"'{x}' wurde nicht korrekt konfiguriert");
return string.Join("; ", missing);
return string.Join(joinChar, missing);
}
private string CheckWebSecretConfig()
@@ -100,7 +102,7 @@ namespace BeWo.Service.Status
.Where(x => string.IsNullOrWhiteSpace(MergedConfig.GetSecretSetting(x)))
.Select(x => $"'{x}' wurde nicht korrekt konfiguriert");
return string.Join("; ", missing);
return string.Join(joinChar, missing);
}
private string CheckDBScripts()
@@ -109,7 +111,7 @@ namespace BeWo.Service.Status
.Where(x => !DAOFactory.ScriptDAO.IsScriptExecuted(x))
.Select(x => $"Script '{x}' wurde nicht ausgeführt");
return string.Join("; ", missing);
return string.Join(joinChar, missing);
}
private string CheckConfig()
@@ -118,7 +120,7 @@ namespace BeWo.Service.Status
.Where(x => !File.Exists(ConfigReader.GetConfigPath(x)))
.Select(x => $"SpecialConfig.{x} wurde nicht korrekt konfiguriert");
return string.Join("; ", missing);
return string.Join(joinChar, missing);
}
}
}