This commit is contained in:
meelstorm
2025-09-22 13:14:50 +02:00
parent 54098b4aaf
commit 0ebe629922
2 changed files with 7 additions and 5 deletions

View File

@@ -38,12 +38,14 @@ public class ErrorsVM:IEventHandler<ImageProcessedEvent>, IEventHandler<SessionS
if(!@event.HasError)return;
string additionalInfo = string.Empty;
var errorShortName = _uiConfiguration.ErrorShortNames
.FirstOrDefault(x => x.FullName == @event.ErrorNames[0]);
if (errorShortName != null)
var errorShortNames = _uiConfiguration.ErrorShortNames
.Where(x => @event.ErrorNames.Contains(x.FullName))
.Select(x => x.ShortName);
if (errorShortNames.Any())
{
additionalInfo += " ,"+errorShortName.ShortName;
additionalInfo += " ," + errorShortNames.FirstOrDefault();
}
ErrorData errorData = new ErrorData