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 ++-- .../Tango.MachineStudio.Logging/Parsing/ApplicationLogFileParser.cs | 2 +- .../Tango.MachineStudio.Logging/Parsing/EmbeddedLogFileParser.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Modules') 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."); diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Parsing/ApplicationLogFileParser.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Parsing/ApplicationLogFileParser.cs index 64f1913fb..4717196df 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Parsing/ApplicationLogFileParser.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Parsing/ApplicationLogFileParser.cs @@ -58,7 +58,7 @@ namespace Tango.MachineStudio.Logging.Parsing } catch (Exception ex) { - //TODO: What to do now ? + LogManager.Default.Log(ex, "Could not parse log line: " + logs[i]); } } diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Parsing/EmbeddedLogFileParser.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Parsing/EmbeddedLogFileParser.cs index d663d6088..ca68334bf 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Parsing/EmbeddedLogFileParser.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Parsing/EmbeddedLogFileParser.cs @@ -67,7 +67,7 @@ namespace Tango.MachineStudio.Logging.Parsing } catch (Exception ex) { - //TODO: What to do now ? + LogManager.Default.Log(ex, "Could not parse log line: " + logs[i]); } } -- cgit v1.3.1