This commit is contained in:
2020-12-10 15:17:50 +00:00
parent fca43b0f61
commit 3da1f1d37c
2 changed files with 4 additions and 4 deletions

View File

@@ -73,14 +73,14 @@ namespace AyaNova.Biz
if (!HasErrors) return string.Empty;
StringBuilder sb = new StringBuilder();
sb.AppendLine("LT:Errors");
sb.AppendLine("LT:Errors - ");
foreach (ValidationError e in _errors)
{
var msg = $"LT:{ApiErrorCodeStockMessage.GetTranslationCodeForApiErrorCode(e.Code)}";
if(!string.IsNullOrWhiteSpace(e.Message))
msg+=$" ,{e.Message}";
msg+=$", {e.Message}";
if(!string.IsNullOrWhiteSpace(e.Target) && e.Target!="errorbox")
msg+=$" ,field: {e.Target}";
msg+=$", field: {e.Target}";
sb.AppendLine(msg);
}
return sb.ToString();