Skip to content

Commit b7ff8d8

Browse files
committed
detect missing method invoked by ExecuteMethod
1 parent 7a446a0 commit b7ff8d8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

UnitySetup/UnitySetup.psm1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,12 +999,19 @@ function Get-IsUnityError {
999999
return $true
10001000
}
10011001

1002+
# Detect that the method specified by -ExecuteMethod doesn't exist, for example:
1003+
# executeMethod method 'Invoke' in class 'Build' could not be found.
1004+
if ( $LogLine -match 'executeMethod method .* could not be found' ) {
1005+
return $true
1006+
}
1007+
10021008
# Detect compilation error, for example:
10031009
# Assets/Errors.cs(7,9): error CS0103: The name `NonexistentFunction' does not exist in the current context
10041010
if ( $LogLine -match '\.cs\(\d+,\d+\): error ' ) {
10051011
return $true
10061012
}
10071013

1014+
10081015
# In the future, additional kinds of errors that can be found in Unity logs could be added here:
10091016
# ...
10101017

0 commit comments

Comments
 (0)