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()); |