Ensure Flax.Build tasks and utilities output error messages as errors

This commit is contained in:
2025-12-16 00:11:06 +02:00
parent 74c1e200ce
commit 46fd5a5855
2 changed files with 19 additions and 2 deletions

View File

@@ -423,6 +423,14 @@ namespace Flax.Build
}
}
private static void StdLogError(object sender, DataReceivedEventArgs e)
{
if (e.Data != null)
{
Log.Error(e.Data);
}
}
private static void StdLogVerbose(object sender, DataReceivedEventArgs e)
{
if (e.Data != null)
@@ -513,7 +521,7 @@ namespace Flax.Build
if (options.HasFlag(RunOptions.ConsoleLogOutput))
{
proc.OutputDataReceived += StdLogInfo;
proc.ErrorDataReceived += StdLogInfo;
proc.ErrorDataReceived += StdLogError;
}
else
{