Skip to content

Commit 796e9fe

Browse files
committed
don't show duplicate errors
1 parent b7ff8d8 commit 796e9fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

UnitySetup/UnitySetup.psm1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,7 @@ function Write-UnityErrors {
984984
Write-Verbose "Checking $LogFileName for errors"
985985
$errors = Get-Content $LogFileName | Where-Object { Get-IsUnityError $_ }
986986
if ( $errors.Count -gt 0 ) {
987+
$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.
987988
$errorMessage = $errors -join "`r`n"
988989
$errorMessage = "Errors were found in $LogFileName`:`r`n$errorMessage"
989990
Write-Error $errorMessage

0 commit comments

Comments
 (0)