Permalink
Browse files

Merge pull request #1242 from daniel-beck/JENKINS-20031

[FIXED JENKINS-20031] Useful error message when UC not found
  • Loading branch information...
oleg-nenashev committed Jun 1, 2014
2 parents 7ee4da9 + a4b63d2 commit 19f4cbcce14ddb0d2d1a06b40af69b8aab2b4ede
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 19f4cbc

Please sign in to comment.