Error handling improvements (#92)
* Consolidate plugin errors into single window. * Handle error aggregation and loggin inside error reporter. * Minor logging corrections. * Error popup tweaking
This commit is contained in:
parent
d8d5f2794b
commit
342d5af11c
7 changed files with 80 additions and 61 deletions
|
|
@ -207,8 +207,8 @@ namespace Observatory.UI.ViewModels
|
|||
{
|
||||
ObservatoryCore.LogError(e, "while exporting data");
|
||||
ErrorReporter.ShowErrorPopup("Error encountered!",
|
||||
"An error occurred while exporting; output may be missing or incomplete." + Environment.NewLine +
|
||||
"Please check the error log (found in your Documents folder) for more details and visit our discord to report it.");
|
||||
new List<(string, string)> { ("An error occurred while exporting; output may be missing or incomplete." + Environment.NewLine +
|
||||
"Please check the error log (found in your Documents folder) for more details and visit our discord to report it.", e.Message) });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ namespace Observatory.UI.ViewModels
|
|||
core = new CoreViewModel(pluginManager.workerPlugins, pluginManager.notifyPlugins);
|
||||
|
||||
if (pluginManager.errorList.Any())
|
||||
ErrorReporter.ShowErrorPopup("Plugin Load Error", string.Join(Environment.NewLine, pluginManager.errorList));
|
||||
ErrorReporter.ShowErrorPopup("Plugin Load Error", pluginManager.errorList);
|
||||
}
|
||||
|
||||
public CoreViewModel core { get; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue