mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-07-01 08:23:42 -04:00
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:
@ -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; }
|
||||
|
Reference in New Issue
Block a user