Plugins UI - Improved error reporting on exceptions during enable

This commit is contained in:
Robert committed 2021-07-22 23:35:08 +02:00
1 parent 4e8d0bf70b
commit 66b1620441
6 files changed
+72 -36

No files matched your search

@@ -426,6 +426,7 @@ namespace Artemis.Core.Services
catch (Exception e)
{
_logger.Warning(new ArtemisPluginException(plugin, "Failed to instantiate feature", e), "Failed to instantiate feature", plugin);
featureInfo.LoadException = e;
}
}
@@ -613,6 +614,9 @@ namespace Artemis.Core.Services
new ArtemisPluginException(pluginFeature.Plugin, $"Exception during SetEnabled(true) on {pluginFeature}", e),
"Failed to enable plugin"
);
if (!isAutoEnable)
throw;
}
finally
{