Skip to content

Commit

Permalink
[FIXED JENKINS-16836] UpdateCenter REST API crashes when plugin insta…
Browse files Browse the repository at this point in the history
…llation failed
  • Loading branch information
cynipe authored and kohsuke committed Feb 16, 2013
1 parent 61a83bd commit e7b2df2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog.html
Expand Up @@ -77,6 +77,9 @@
<li class=bug>
UI waiting on a queue lock to display cause of queue blockage.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-16833">issue 16833</a>)
<li class=bug>
UpdateCenter REST API chokes if there was a plugin installation failure.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-16836">issue 16836</a>)
<li class=rfe>
JNLP slave installers can now work transparently with secured Jenkins.
(SECURITY-54 / despite the ticket marker, this is not a security vulnerability)
Expand Down
4 changes: 4 additions & 0 deletions core/src/main/java/hudson/model/UpdateCenter.java
Expand Up @@ -924,6 +924,10 @@ public Future<UpdateCenterJob> submit() {
}

@Exported
public String getErrorMessage() {
return error != null ? error.getMessage() : null;
}

public Throwable getError() {
return error;
}
Expand Down

0 comments on commit e7b2df2

Please sign in to comment.