diff --git a/Client/Program.cs b/Client/Program.cs index dde9fb2..fe5cb9d 100644 --- a/Client/Program.cs +++ b/Client/Program.cs @@ -1,7 +1,7 @@ -using System.Diagnostics; -using System.Xml.Linq; +using ClientServerShared; using PipeMethodCalls; -using ClientServerShared; +using System.Diagnostics; +using System.Xml.Linq; // All output is written to an XML report next to the executable string reportPath = Path.Combine(AppContext.BaseDirectory, "ClientReport.xml"); @@ -56,6 +56,10 @@ void Log(string message) { lock (report) report.Add(new XElement("Entry", new XAttribute("Time", DateTime.Now.ToString("O")), message)); + + Console.ForegroundColor = message.Contains("Server exception") ? ConsoleColor.Red : ConsoleColor.Blue; + Console.WriteLine(message); + Console.ResetColor(); } async Task BasicCallsExampleAsync()