Skip to content

Commit

Permalink
Merge pull request #5 from jenkinsci/findbugs-fix-2
Browse files Browse the repository at this point in the history
Findbugs fix 2
  • Loading branch information
meg23 committed Nov 29, 2016
2 parents cb461b0 + d10692f commit 74bb41f
Showing 1 changed file with 2 additions and 1 deletion.
@@ -1,5 +1,6 @@
package com.aspectsecurity.contrast.contrastjenkins;

import com.contrastsecurity.exceptions.UnauthorizedException;
import com.contrastsecurity.models.Organizations;
import com.contrastsecurity.sdk.ContrastSDK;
import hudson.Extension;
Expand Down Expand Up @@ -133,7 +134,7 @@ public FormValidation doTestTeamServerConnection(@QueryParameter("ts.username")
}

return FormValidation.ok("Successfully verified the connection to TeamServer!");
} catch (Exception e) {
} catch (UnauthorizedException e) {
return FormValidation.error("TeamServer Connection error: Unable to connect to TeamServer.");
}
}
Expand Down

0 comments on commit 74bb41f

Please sign in to comment.