diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-11 10:23:24 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-11 10:23:24 +0300 |
| commit | b21d8e7c164b63d14d15cfdf3dda68ae88a03043 (patch) | |
| tree | d4df5ec93d5cc3011766470183a8a43a96439405 /Software/Visual_Studio/MachineStudio/Modules | |
| parent | 6323ea8d74be3440286acaf73cab98024a858499 (diff) | |
| download | Tango-b21d8e7c164b63d14d15cfdf3dda68ae88a03043.tar.gz Tango-b21d8e7c164b63d14d15cfdf3dda68ae88a03043.zip | |
Code cleanup for warnings.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules')
3 files changed, 4 insertions, 4 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."); 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]); } } |
