mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-17 05:35:07 +00:00
fix: Don't write console to error out
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using ICD.Common.Properties;
|
using ICD.Common.Properties;
|
||||||
#if SIMPLSHARP
|
#if SIMPLSHARP
|
||||||
@@ -74,7 +75,7 @@ namespace ICD.Common.Utils
|
|||||||
#else
|
#else
|
||||||
System.Console.ForegroundColor = color.ToForegroundConsoleColor();
|
System.Console.ForegroundColor = color.ToForegroundConsoleColor();
|
||||||
System.Console.BackgroundColor = color.ToBackgroundConsoleColor();
|
System.Console.BackgroundColor = color.ToBackgroundConsoleColor();
|
||||||
System.Console.Error.WriteLine(message);
|
System.Console.WriteLine(message);
|
||||||
System.Console.ResetColor();
|
System.Console.ResetColor();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -107,7 +108,7 @@ namespace ICD.Common.Utils
|
|||||||
#else
|
#else
|
||||||
System.Console.ForegroundColor = color.ToForegroundConsoleColor();
|
System.Console.ForegroundColor = color.ToForegroundConsoleColor();
|
||||||
System.Console.BackgroundColor = color.ToBackgroundConsoleColor();
|
System.Console.BackgroundColor = color.ToBackgroundConsoleColor();
|
||||||
System.Console.Error.Write(message);
|
System.Console.Write(message);
|
||||||
System.Console.ResetColor();
|
System.Console.ResetColor();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user