aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-06-11 10:23:24 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-06-11 10:23:24 +0300
commitb21d8e7c164b63d14d15cfdf3dda68ae88a03043 (patch)
treed4df5ec93d5cc3011766470183a8a43a96439405 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB
parent6323ea8d74be3440286acaf73cab98024a858499 (diff)
downloadTango-b21d8e7c164b63d14d15cfdf3dda68ae88a03043.tar.gz
Tango-b21d8e7c164b63d14d15cfdf3dda68ae88a03043.zip
Code cleanup for warnings.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/DbTableViewModel.cs4
1 files changed, 2 insertions, 2 deletions
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.");