exception

This commit is contained in:
2024-05-16 11:15:52 +02:00
parent c3819457e5
commit 217616db7c
2 changed files with 3 additions and 1 deletions

View File

@@ -197,8 +197,9 @@ namespace Pilz.Plugins
loadedPlugins.Add(info); loadedPlugins.Add(info);
} }
} }
catch catch (Exception ex)
{ {
info.Exception = ex;
info.Status = PluginStatus.ErrorAtInitializing; info.Status = PluginStatus.ErrorAtInitializing;
} }
} }

View File

@@ -12,5 +12,6 @@ namespace Pilz.Plugins
public T? Plugin { get; internal set; } public T? Plugin { get; internal set; }
public PluginStatus Status { get; internal set; } public PluginStatus Status { get; internal set; }
public Assembly? Assembly { get; internal set; } public Assembly? Assembly { get; internal set; }
public Exception? Exception { get; internal set; }
} }
} }