aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MainViewVM.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MainViewVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MainViewVM.cs
index 9b47cf390..67b007371 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MainViewVM.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MainViewVM.cs
@@ -116,7 +116,14 @@ namespace Tango.PPC.UI.ViewModels
if (MachineProvider.IsConnected)
{
- await MachineProvider.MachineOperator.CompleteWasteReplacement(vm.DialogResult);
+ try
+ {
+ await MachineProvider.MachineOperator.CompleteWasteReplacement(vm.DialogResult);
+ }
+ catch (Exception ex)
+ {
+ await NotificationProvider.ShowError($"Could not complete the process correctly.\n{ex.Message}");
+ }
}
});
}