mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Plugins UI - Improved error reporting on exceptions during enable
This commit is contained in:
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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user