Hide exception when build errors occurs in referenced targets

This commit is contained in:
2023-10-11 21:42:45 +03:00
parent 5b3e09baec
commit ff7e6d82f8
3 changed files with 14 additions and 1 deletions

View File

@@ -628,7 +628,10 @@ namespace Flax.Build
}
}
if (failed)
{
Globals.BuildErrors = true;
throw new Exception($"Failed to build target {target.Name}. See log.");
}
}
else
{
@@ -689,7 +692,10 @@ namespace Flax.Build
}
}
if (failed)
{
Globals.BuildErrors = true;
throw new Exception($"Failed to build target {target.Name}. See log.");
}
}
else
{