5
0
Fork 0
mirror of https://github.com/hashicorp/vault-action.git synced 2025-11-14 18:13:45 +00:00

Address additional comments on #182

This commit is contained in:
Christopher Swenson 2022-04-20 13:35:10 -07:00
parent 7dc1ddf98c
commit e47faaa86b
No known key found for this signature in database
GPG key ID: C6C65AC280FCDC3F
2 changed files with 2 additions and 2 deletions

View file

@ -128,7 +128,7 @@ describe('integration', () => {
secret/data/test secret | NAMED_SECRET ;
secret/data/notFound kehe | NO_SIR ;`);
expect(exportSecrets()).rejects.toEqual(Error(`Unable to retrieve result for "secret/data/notFound". Double check your Key.`));
expect(exportSecrets()).rejects.toEqual(Error(`Unable to retrieve result for "secret/data/notFound" because it was not found: {"errors":[]}`));
})
it('get simple secret', async () => {

View file

@ -41,7 +41,7 @@ async function getSecrets(secretRequests, client) {
} catch (error) {
const {response} = error;
if (response.statusCode === 404) {
throw Error(`Unable to retrieve result for "${path}". Double check your Key.`)
throw Error(`Unable to retrieve result for "${path}" because it was not found: ${response.body.trim()}`)
}
throw error
}