Exception output correctly in Debug Window.

This commit is contained in:
Scalpel_cp 2008-03-25 21:41:28 +00:00
parent 2c2f7e731c
commit 93ae595676

View file

@ -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;
}