mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 05:52:11 +00:00
Exception output correctly in Debug Window.
This commit is contained in:
parent
2c2f7e731c
commit
93ae595676
1 changed files with 2 additions and 2 deletions
|
|
@ -49,9 +49,9 @@ namespace Cosmos.Build.Windows {
|
||||||
|
|
||||||
protected delegate void ConnectionLostDelegate(Exception ex);
|
protected delegate void ConnectionLostDelegate(Exception ex);
|
||||||
protected void ConnectionLost(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;
|
DebugGrid.Background = System.Windows.Media.Brushes.Red;
|
||||||
while (ex.InnerException != null) {
|
while (ex != null) {
|
||||||
textBlock1.Text += ex.Message + Environment.NewLine;
|
textBlock1.Text += ex.Message + Environment.NewLine;
|
||||||
ex = ex.InnerException;
|
ex = ex.InnerException;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue