Do not only catch IOException while loading plugins

This commit is contained in:
Rene Pfeuffer
2019-09-17 08:23:33 +02:00
parent 0bb7770ed2
commit b1b8db2b78

View File

@@ -33,8 +33,8 @@ class PluginCenterLoader {
LOG.info("fetch plugins from {}", url);
PluginCenterDto pluginCenterDto = client.get(url).request().contentFromJson(PluginCenterDto.class);
return mapper.map(pluginCenterDto);
} catch (IOException ex) {
LOG.error("failed to load plugins from plugin center, returning empty list");
} catch (Exception ex) {
LOG.error("failed to load plugins from plugin center, returning empty list", ex);
return Collections.emptySet();
}
}