From b21d8e7c164b63d14d15cfdf3dda68ae88a03043 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 11 Jun 2018 10:23:24 +0300 Subject: Code cleanup for warnings. --- .../Modules/Tango.MachineStudio.DB/ViewModels/DbTableViewModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/DbTableViewModel.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/DbTableViewModel.cs index 8366a3e83..fc762d77d 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/DbTableViewModel.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/DbTableViewModel.cs @@ -155,7 +155,7 @@ namespace Tango.MachineStudio.DB.ViewModels catch (Exception ex) { Adapter.Invalidate(); - _notification.ShowError("Could not delete entity."); + _notification.ShowError("Could not delete entity." + Environment.NewLine + ex.Message); } SelectedEntity = null; @@ -251,7 +251,7 @@ namespace Tango.MachineStudio.DB.ViewModels Adapter.Invalidate(); _notification.ShowError("Could not save entity." + Environment.NewLine + ex.InnerException.InnerException != null ? ex.InnerException.InnerException.Message : ex.InnerException.Message); } - catch (Exception ex) + catch (Exception) { Adapter.Invalidate(); _notification.ShowError("Could not save entity." + Environment.NewLine + "Please make sure all fields are properly populated."); -- cgit v1.3.1