Use stderr for Flax.Build error messages
This turns the error messages from Flax.Build to red in Flax Editor console output.
This commit is contained in:
@@ -65,7 +65,10 @@ namespace Flax.Build
|
|||||||
if (ApplyConsoleColors)
|
if (ApplyConsoleColors)
|
||||||
Console.ForegroundColor = color;
|
Console.ForegroundColor = color;
|
||||||
|
|
||||||
Console.WriteLine(Indent + message);
|
if (color != ConsoleColor.Red)
|
||||||
|
Console.WriteLine(Indent + message);
|
||||||
|
else
|
||||||
|
Console.Error.WriteLine(Indent + message);
|
||||||
|
|
||||||
if (ApplyConsoleColors)
|
if (ApplyConsoleColors)
|
||||||
Console.ResetColor();
|
Console.ResetColor();
|
||||||
|
|||||||
Reference in New Issue
Block a user