Plugins: show plugins from custom repos when main is not available

This commit is contained in:
Alexander Lobas
2019-01-23 15:45:02 +03:00
parent a136c8d291
commit f8e42dd3d4
@@ -1400,12 +1400,16 @@ public class PluginManagerConfigurableNew
}
}
}
catch (UnknownHostException e) {
PluginManagerMain.LOG.info("Main plugin repository '" + e.getMessage() + "' is not available. Please check your network settings.");
}
catch (IOException e) {
if (host == null) {
exception = e;
//noinspection InstanceofCatchParameter
if (e instanceof UnknownHostException) {
PluginManagerMain.LOG
.info("Main plugin repository '" + e.getMessage() + "' is not available. Please check your network settings.");
}
else {
exception = e;
}
}
else {
PluginManagerMain.LOG.info(host, e);