Skip to content

Commit bbd6706

Browse files
committed
Fix for writing logs to information stream
1 parent df19a95 commit bbd6706

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UnitySetup/UnitySetup.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,9 +714,9 @@ function Start-UnityEditor
714714
$process.WaitForExit();
715715
if( $process.ExitCode -ne 0 )
716716
{
717-
if( $LogFile )
717+
if( $LogFile -and (Test-Path $LogFile -Type Leaf) )
718718
{
719-
Get-Content $LogFile | Write-Information
719+
Get-Content $LogFile | ForEach-Object { Write-Information -MessageData $_ -Tags 'Logs' }
720720
}
721721

722722
Write-Error "Unity quit with non-zero exit code"

0 commit comments

Comments
 (0)