ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater.PluginFramework/Core/PluginLoader.cs
(Generate patch)

Comparing trunk/RomCheater.PluginFramework/Core/PluginLoader.cs (file contents):
Revision 85 by william, Wed May 9 18:13:51 2012 UTC vs.
Revision 86 by william, Wed May 9 19:41:06 2012 UTC

# Line 44 | Line 44 | namespace RomCheater.PluginFramework.Cor
44  
45                  logger.Info.WriteLine("Plugins Loaded.");
46              }
47 +            catch (ReflectionTypeLoadException ex)
48 +            {
49 +                StringBuilder builder = new StringBuilder();
50 +                if (ex.LoaderExceptions.Count() > 0)
51 +                {
52 +                    foreach (Exception c in ex.LoaderExceptions)
53 +                    {
54 +                        builder.AppendLine(c.ToString());
55 +                    }
56 +                }
57 +                logger.Error.WriteLine("Failed to load one or more plugins{0}Possible Reason:{0}{1}", System.Environment.NewLine, builder.ToString());
58 +            }
59              catch (Exception ex)
60              {
61                  logger.Error.WriteLine("Failed to load one or more plugins{0}Possible Reason:{0}{1}", System.Environment.NewLine, ex.ToString());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines