Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/02/12 13:16:45 (13 years ago)
Author:
gkronber
Message:

#1887 throwing a more informative exception when loading a plugin fails because it's assemblies are not loaded.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Manager/PluginValidator.cs

    r7259 r8178  
    551551                       where string.Equals(Path.GetFullPath(assembly.Location), Path.GetFullPath(assemblyLocation), StringComparison.CurrentCultureIgnoreCase)
    552552                       select assembly)
    553                       .Single();
    554 
     553                      .SingleOrDefault();
     554            if (asm == null) throw new InvalidPluginException("Could not assembly " + assemblyLocation + " for plugin " + desc.Name);
    555555            foreach (Type pluginType in asm.GetTypes()) {
    556556              if (typeof(IPlugin).IsAssignableFrom(pluginType) && !pluginType.IsAbstract && !pluginType.IsInterface && !pluginType.HasElementType) {
Note: See TracChangeset for help on using the changeset viewer.