diff --git a/ApiDoctor.Console/Program.cs b/ApiDoctor.Console/Program.cs index 606a3fd2..4048c24e 100644 --- a/ApiDoctor.Console/Program.cs +++ b/ApiDoctor.Console/Program.cs @@ -2254,8 +2254,7 @@ private static void GenerateSnippets(string executablePath, params string[] args } else { - FancyConsole.WriteLine(FancyConsole.ConsoleErrorColor, "Error when generating code snippets!!!"); - FancyConsole.Write(FancyConsole.ConsoleErrorColor, e.Data); + FancyConsole.Write(FancyConsole.ConsoleDefaultColor, e.Data); } }; process.ErrorDataReceived += (sender, e) => @@ -2266,7 +2265,8 @@ private static void GenerateSnippets(string executablePath, params string[] args } else { - FancyConsole.Write(FancyConsole.ConsoleDefaultColor, e.Data); + FancyConsole.WriteLine(FancyConsole.ConsoleErrorColor, "Error when generating code snippets!!!"); + FancyConsole.Write(FancyConsole.ConsoleErrorColor, e.Data); } }; process.Start();