Broaden a catch clause so Java Errors while loading plugins don't halt the proxy.
This commit is contained in:
@@ -76,7 +76,7 @@ public class VelocityPluginManager implements PluginManager {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
pluginObject = loader.createPlugin(plugin);
|
pluginObject = loader.createPlugin(plugin);
|
||||||
} catch (Exception e) {
|
} catch (Throwable e) {
|
||||||
logger.error("Can't create plugin {}", plugin.getId(), e);
|
logger.error("Can't create plugin {}", plugin.getId(), e);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user