Skip to content

Commit 494d56e

Browse files
committed
Added instructional context for the warning
1 parent 31463b3 commit 494d56e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

UnitySetup/UnitySetup.psm1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,11 @@ class UnityProjectInstance {
130130
if (!$prodName) { throw "ProjectSettings is missing productName" }
131131
}
132132
catch {
133-
Write-Warning -Message "An Exception was caught!"
134-
Write-Warning -Message "Exception Type: $($_.Exception.GetType().FullName)"
135-
Write-Warning -Message "Exception Message: $($_.Exception.Message)"
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)"
137+
136138
$prodName = $null
137139
}
138140

0 commit comments

Comments
 (0)