mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-13 04:23:01 +03:00
Catch TypeLoadException during plugin loading
This commit is contained in:
@@ -122,6 +122,12 @@ namespace Emby.Server.Implementations.Plugins
|
||||
ChangePluginState(plugin, PluginStatus.Malfunctioned);
|
||||
continue;
|
||||
}
|
||||
catch (TypeLoadException ex)
|
||||
{
|
||||
_logger.LogError(ex, "Failed to load assembly {Path}. Disabling plugin. This is probably caused by an incompatible plugin version.", file);
|
||||
ChangePluginState(plugin, PluginStatus.Malfunctioned);
|
||||
continue;
|
||||
}
|
||||
|
||||
_logger.LogInformation("Loaded assembly {Assembly} from {Path}", assembly.FullName, file);
|
||||
yield return assembly;
|
||||
|
||||
Reference in New Issue
Block a user