diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-31 15:45:54 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-31 15:45:54 +0300 |
| commit | e514b66b261c24257b149ecc6aaa52195509a2b5 (patch) | |
| tree | ae889a11eb88c36e3b70ebe8d83b7e60bc80408b /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels | |
| parent | a56427605302770b4c0a71a5ff4da439300a2250 (diff) | |
| download | Tango-e514b66b261c24257b149ecc6aaa52195509a2b5.tar.gz Tango-e514b66b261c24257b149ecc6aaa52195509a2b5.zip | |
Working on external bridge.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs index 81f47c4ba..d0bddf3f2 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs @@ -37,6 +37,7 @@ using Tango.Settings; using Tango.SharedUI; using Tango.SharedUI.Controls; using Tango.SharedUI.Helpers; +using Tango.Transport; using Tango.Transport.Adapters; namespace Tango.MachineStudio.UI.ViewModels @@ -471,6 +472,12 @@ namespace Tango.MachineStudio.UI.ViewModels _eventLogger.Log(String.Format("Successfully connected to machine {0} via TCP", x.SelectedMachine.SerialNumber)); } + catch (ResponseErrorException ex) + { + LogManager.Log(ex); + _eventLogger.Log(ex, "Error connecting to machine " + x.SelectedMachine.SerialNumber); + _notificationProvider.ShowError("Could not connect to the selected machine." + Environment.NewLine + ex.Container.ErrorMessage); + } catch (Exception ex) { LogManager.Log(ex); |
