mirror of
https://github.com/hashicorp/vault-action.git
synced 2025-11-09 16:16:55 +00:00
Update src/auth.js
Co-authored-by: Austin Gebauer <34121980+austingebauer@users.noreply.github.com>
This commit is contained in:
parent
f7bd386561
commit
df647b21f7
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ async function getClientToken(client, method, path, payload) {
|
|||
response = await client.post(`v1/auth/${path}/login`, options);
|
||||
} catch (err) {
|
||||
if (err instanceof got.HTTPError) {
|
||||
throw Error(`failed to retrieve vault token. code: ${err.code}, message ${err.message}, vaultResponse: ${JSON.stringify(err.response.body)}`)
|
||||
throw Error(`failed to retrieve vault token. code: ${err.code}, message: ${err.message}, vaultResponse: ${JSON.stringify(err.response.body)}`)
|
||||
} else {
|
||||
throw err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue