public override void WriteError(string message)
 {
     if (OnWriteError != null)
     {
         OnWriteError.Invoke(message);
     }
 }
Exemple #2
0
        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();
            }
        }