mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-13 20:47:24 +00:00
fix: Don't write console to error out
This commit is contained in:
parent
bf91d9e87f
commit
e1279fb860
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue