@@ -55,7 +55,7 @@ public static IEnumerable<PluginPair> DotNetPlugins(List<PluginMetadata> source)
55
55
{
56
56
erroredPlugins . Add ( metadata . Name ) ;
57
57
58
- Log . Exception ( $ "|PluginsLoader.DotNetPlugins|Couldn't load assembly for { metadata . Name } ", e ) ;
58
+ Log . Exception ( $ "|PluginsLoader.DotNetPlugins|Couldn't load assembly for the plugin: { metadata . Name } ", e ) ;
59
59
return ;
60
60
}
61
61
@@ -70,14 +70,14 @@ public static IEnumerable<PluginPair> DotNetPlugins(List<PluginMetadata> source)
70
70
{
71
71
erroredPlugins . Add ( metadata . Name ) ;
72
72
73
- Log . Exception ( $ "|PluginsLoader.DotNetPlugins|Can't find class implement IPlugin for <{ metadata . Name } >", e ) ;
73
+ Log . Exception ( $ "|PluginsLoader.DotNetPlugins|Can't find the required IPlugin interface for the plugin: <{ metadata . Name } >", e ) ;
74
74
return ;
75
75
}
76
76
catch ( ReflectionTypeLoadException e )
77
77
{
78
78
erroredPlugins . Add ( metadata . Name ) ;
79
79
80
- Log . Exception ( $ "|PluginsLoader.DotNetPlugins|The GetTypes method was unable to load assembly types for <{ metadata . Name } >", e ) ;
80
+ Log . Exception ( $ "|PluginsLoader.DotNetPlugins|The GetTypes method was unable to load assembly types for the plugin: <{ metadata . Name } >", e ) ;
81
81
return ;
82
82
}
83
83
@@ -90,7 +90,7 @@ public static IEnumerable<PluginPair> DotNetPlugins(List<PluginMetadata> source)
90
90
{
91
91
erroredPlugins . Add ( metadata . Name ) ;
92
92
93
- Log . Exception ( $ "|PluginsLoader.DotNetPlugins|Can't create instance for <{ metadata . Name } >", e ) ;
93
+ Log . Exception ( $ "|PluginsLoader.DotNetPlugins|The following plugin has errored and can not be loaded: <{ metadata . Name } >", e ) ;
94
94
return ;
95
95
}
96
96
#endif
@@ -109,11 +109,15 @@ public static IEnumerable<PluginPair> DotNetPlugins(List<PluginMetadata> source)
109
109
{
110
110
var errorPluginString = "" ;
111
111
112
+ var errorMessage = "The following "
113
+ + ( erroredPlugins . Count > 1 ? "plugins have " : "plugin has " )
114
+ + "errored and cannot be loaded:" ;
115
+
112
116
erroredPlugins . ForEach ( x => errorPluginString += x + Environment . NewLine ) ;
113
117
114
118
Task . Run ( ( ) =>
115
119
{
116
- MessageBox . Show ( $ "Uh oh, unable to load plugins: { Environment . NewLine } { errorPluginString } ") ;
120
+ MessageBox . Show ( $ "{ errorMessage } { Environment . NewLine } { errorPluginString } ") ;
117
121
} ) ;
118
122
}
119
123
0 commit comments