Change Globals.BuildErrors into BuildException #1673

This commit is contained in:
Wojtek Figat
2023-11-15 11:57:53 +01:00
parent 385693afff
commit 3a59cfcf20
5 changed files with 18 additions and 15 deletions

View File

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