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

--- trunk/RomCheater.PluginFramework/Core/PluginLoader.cs	2012/05/09 18:13:51	85
+++ trunk/RomCheater.PluginFramework/Core/PluginLoader.cs	2012/05/09 19:41:06	86
@@ -44,6 +44,18 @@ namespace RomCheater.PluginFramework.Cor
 
                 logger.Info.WriteLine("Plugins Loaded.");
             }
+            catch (ReflectionTypeLoadException ex)
+            {
+                StringBuilder builder = new StringBuilder();
+                if (ex.LoaderExceptions.Count() > 0)
+                {
+                    foreach (Exception c in ex.LoaderExceptions)
+                    {
+                        builder.AppendLine(c.ToString());
+                    }
+                }
+                logger.Error.WriteLine("Failed to load one or more plugins{0}Possible Reason:{0}{1}", System.Environment.NewLine, builder.ToString());
+            }
             catch (Exception ex)
             {
                 logger.Error.WriteLine("Failed to load one or more plugins{0}Possible Reason:{0}{1}", System.Environment.NewLine, ex.ToString());