Skip to content

Commit 874b517

Browse files
mamachankomp911de
authored andcommitted
Correct error message when failing to unwrap AppRole.
Closes gh-906 Signed-off-by: Max Brauer <[email protected]>
1 parent 3c6563d commit 874b517

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-vault-core/src/main/java/org/springframework/vault/authentication/AppRoleAuthentication.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ private String getSecretId(SecretId secretId) throws VaultLoginException {
280280
return (String) response.getRequiredData().get("secret_id");
281281
}
282282
catch (HttpStatusCodeException e) {
283-
throw new VaultLoginException("Cannot unwrap Role id using AppRole: %s"
283+
throw new VaultLoginException("Cannot unwrap Secret id using AppRole: %s"
284284
.formatted(VaultResponses.getError(e.getResponseBodyAsString())), e);
285285
}
286286
}

0 commit comments

Comments
 (0)