From f3db36fc392e2c412fe45854636a880744cca4be Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Thu, 21 Jun 2007 18:41:15 +0000 Subject: * Maintainence: Experimental console fix for Debian --- Common/OpenSim.Framework.Console/ConsoleBase.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'Common/OpenSim.Framework.Console/ConsoleBase.cs') diff --git a/Common/OpenSim.Framework.Console/ConsoleBase.cs b/Common/OpenSim.Framework.Console/ConsoleBase.cs index 4b0f7b1..30854fe 100644 --- a/Common/OpenSim.Framework.Console/ConsoleBase.cs +++ b/Common/OpenSim.Framework.Console/ConsoleBase.cs @@ -108,9 +108,16 @@ namespace OpenSim.Framework.Console Log.Flush(); if (!m_silent) { - System.Console.ForegroundColor = color; - System.Console.WriteLine(format, args); - System.Console.ResetColor(); + try + { + System.Console.ForegroundColor = color; + System.Console.WriteLine(format, args); + System.Console.ResetColor(); + } // Because mono and old debian sucks. + catch (System.ArgumentNullException) + { + System.Console.WriteLine(format, args); + } } return; } -- cgit v1.1