Skip to content
Permalink
Browse files

[FIXED JENKINS-20031] Useful error message when UC not found

  • Loading branch information...
daniel-beck committed May 19, 2014
1 parent 016f304 commit a4b63d2dc0ced54196f0ac69fe040246b7579090
Showing with 3 additions and 1 deletion.
  1. +3 −1 core/src/main/java/hudson/PluginManager.java
@@ -721,7 +721,9 @@ public void doInstall(StaplerRequest req, StaplerResponse rsp) throws IOExceptio
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) {

0 comments on commit a4b63d2

Please sign in to comment.
You can’t perform that action at this time.