public override void WriteError(string message) { if (OnWriteError != null) { OnWriteError.Invoke(message); } }
public static void WriteError(string message) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("[ERROR] " + message); Console.ResetColor(); OnWriteError?.Invoke(message); if (breakOnError) { System.Diagnostics.Debugger.Break(); } }