This commit is contained in:
Stephen Hodgson 2019-01-09 08:56:43 -08:00
Родитель 2102fb1f92
Коммит dffaf73edc
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1055,7 +1055,7 @@ function Write-UnityErrors {
Write-Verbose "Checking $LogFileName for errors"
$errors = Get-Content $LogFileName | Where-Object { Get-IsUnityError $_ }
if ( $errors.Count -gt 0 ) {
$errors = $errors | select -uniq # Unity prints out errors as they occur and also in a summary list. We only want to see each unique error once.
$errors = $errors | Select-Object -uniq # Unity prints out errors as they occur and also in a summary list. We only want to see each unique error once.
$errorMessage = $errors -join "`r`n"
$errorMessage = "Errors were found in $LogFileName`:`r`n$errorMessage"
Write-Error $errorMessage