Skip to content

Commit 75dcdf2

Browse files
committed
Fixed warning formatting
1 parent 494d56e commit 75dcdf2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

UnitySetup/UnitySetup.psm1

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,11 @@ class UnityProjectInstance {
130130
if (!$prodName) { throw "ProjectSettings is missing productName" }
131131
}
132132
catch {
133-
Write-Warning -Message "Could not read $projectSettingsFile, in the Unity project try setting Editor Settings > Asset Serialiazation Mode to 'Force Text'.
134-
An Exception was caught!
135-
Exception Type: $($_.Exception.GetType().FullName)
136-
Exception Message: $($_.Exception.Message)"
133+
$msg = "Could not read $projectSettingsFile, in the Unity project try setting Editor Settings > Asset Serialiazation Mode to 'Force Text'."
134+
$msg += "`nAn Exception was caught!"
135+
$msg += "`nException Type: $($_.Exception.GetType().FullName)"
136+
$msg += "`nException Message: $($_.Exception.Message)"
137+
Write-Warning -Message $msg
137138

138139
$prodName = $null
139140
}

0 commit comments

Comments
 (0)