File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -981,6 +981,7 @@ function Start-UnityEditor {
981
981
# Open the specified Unity log file and write any errors found in the file to the error stream.
982
982
function Write-UnityErrors {
983
983
param ([string ] $LogFileName )
984
+ Write-Verbose " Checking $LogFileName for errors"
984
985
$errors = Get-Content $LogFileName | Where-Object { Get-IsUnityError $_ }
985
986
if ( $errors.Count -gt 0 ) {
986
987
$errorMessage = $errors -join " `r`n "
@@ -992,6 +993,12 @@ function Write-UnityErrors {
992
993
function Get-IsUnityError {
993
994
param ([string ] $LogLine )
994
995
996
+ # Detect Unity License error, for example:
997
+ # BatchMode: Unity has not been activated with a valid License. Could be a new activation or renewal...
998
+ if ( $LogLine -match ' Unity has not been activated with a valid License' ) {
999
+ return $true
1000
+ }
1001
+
995
1002
# Detect compilation error, for example:
996
1003
# Assets/Errors.cs(7,9): error CS0103: The name `NonexistentFunction' does not exist in the current context
997
1004
if ( $LogLine -match ' \.cs\(\d+,\d+\): error ' ) {
You can’t perform that action at this time.
0 commit comments