Permalink
Browse files

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

(cherry picked from commit a4b63d2)
  • Loading branch information...
daniel-beck authored and olivergondza committed May 19, 2014
1 parent c3ddea2 commit 2f19b5c4f376eb69b699454219724b14eeae0206
Showing with 3 additions and 1 deletion.
  1. +3 −1 core/src/main/java/hudson/PluginManager.java
@@ -732,7 +732,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 2f19b5c

Please sign in to comment.