Skip to content

Commit

Permalink
Merge pull request #48 from benhei/master
Browse files Browse the repository at this point in the history
[JENKINS-49535] Improve error message when credentials entry is not found
  • Loading branch information
jglick committed Mar 19, 2018
2 parents f2530b0 + a594f69 commit aeda5de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public abstract MultiEnvironment bind(@Nonnull Run<?,?> build,
protected final @Nonnull C getCredentials(@Nonnull Run<?,?> build) throws IOException {
IdCredentials cred = CredentialsProvider.findCredentialById(credentialsId, IdCredentials.class, build);
if (cred==null)
throw new CredentialNotFoundException(credentialsId);
throw new CredentialNotFoundException("Could not find credentials entry with ID '" + credentialsId + "'");

if (type().isInstance(cred)) {
CredentialsProvider.track(build, cred);
Expand Down

0 comments on commit aeda5de

Please sign in to comment.