mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-03 23:25:52 +00:00
Merge pull request #1242 from daniel-beck/JENKINS-20031
[FIXED JENKINS-20031] Useful error message when UC not found
This commit is contained in:
commit
19f4cbcce1
1 file changed
+3
-1
@@ -732,7 +732,9 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
|
||||
String pluginName = n.substring(0, index);
|
||||
String siteName = n.substring(index + 1);
|
||||
UpdateSite updateSite = Jenkins.getInstance().getUpdateCenter().getById(siteName);
|
||||
if (siteName != null) {
|
||||
if (updateSite == null) {
|
||||
throw new Failure("No such update center: " + siteName);
|
||||
} else {
|
||||
UpdateSite.Plugin plugin = updateSite.getPlugin(pluginName);
|
||||
if (plugin != null) {
|
||||
if (p != null) {
|
||||
|
||||
Reference in new issue
Block a user