Skip to content

Commit

Permalink
Fix inverted error/output data handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrueastman committed Aug 17, 2023
1 parent 934c6c6 commit b771ac7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ApiDoctor.Console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand All @@ -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();
Expand Down

0 comments on commit b771ac7

Please sign in to comment.