From 93ae595676da2672c7773aec00d909337d43a803 Mon Sep 17 00:00:00 2001 From: Scalpel_cp <165da7fc5536ee16440a98f161bfa866a8b94595G55xazV5> Date: Tue, 25 Mar 2008 21:41:28 +0000 Subject: [PATCH] Exception output correctly in Debug Window. --- source/Cosmos.Build.Windows/DebugWindow.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Cosmos.Build.Windows/DebugWindow.xaml.cs b/source/Cosmos.Build.Windows/DebugWindow.xaml.cs index e9460498a..5ee87ce4f 100644 --- a/source/Cosmos.Build.Windows/DebugWindow.xaml.cs +++ b/source/Cosmos.Build.Windows/DebugWindow.xaml.cs @@ -49,9 +49,9 @@ namespace Cosmos.Build.Windows { protected delegate void ConnectionLostDelegate(Exception ex); protected void ConnectionLost(Exception ex) { - textBlock1.Text = "TCP Connection to virtual machine lost!" + Environment.NewLine; + textBlock1.Text = "No TCP Connection to virtual machine!" + Environment.NewLine; DebugGrid.Background = System.Windows.Media.Brushes.Red; - while (ex.InnerException != null) { + while (ex != null) { textBlock1.Text += ex.Message + Environment.NewLine; ex = ex.InnerException; }