Correct error message when failing to unwrap AppRole.

Closes gh-906

Signed-off-by: Max Brauer <mbrauer@vmware.com>
This commit is contained in:
Max Brauer
2025-02-26 15:03:25 +01:00
committed by Mark Paluch
parent ab84cda160
commit 51d88751fb

View File

@@ -280,7 +280,7 @@ public class AppRoleAuthentication implements ClientAuthentication, Authenticati
return (String) response.getRequiredData().get("secret_id");
}
catch (HttpStatusCodeException e) {
throw new VaultLoginException("Cannot unwrap Role id using AppRole: %s"
throw new VaultLoginException("Cannot unwrap Secret id using AppRole: %s"
.formatted(VaultResponses.getError(e.getResponseBodyAsString())), e);
}
}