Skip to content

Commit

Permalink
Merge pull request #1242 from daniel-beck/JENKINS-20031
Browse files Browse the repository at this point in the history
[FIXED JENKINS-20031] Useful error message when UC not found
  • Loading branch information
oleg-nenashev committed Jun 1, 2014
2 parents 7ee4da9 + a4b63d2 commit 19f4cbc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/java/hudson/PluginManager.java
Expand Up @@ -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) {
Expand Down

0 comments on commit 19f4cbc

Please sign in to comment.