mirror of
https://github.com/hashicorp/vault-action.git
synced 2025-11-07 15:16:56 +00:00
handle undefined response in getSecrets error handler (#431)
This commit is contained in:
parent
3bbbc68bd0
commit
256bfb9e6a
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ async function getSecrets(secretRequests, client) {
|
|||
responseCache.set(requestPath, body);
|
||||
} catch (error) {
|
||||
const {response} = error;
|
||||
if (response.statusCode === 404) {
|
||||
if (response?.statusCode === 404) {
|
||||
throw Error(`Unable to retrieve result for "${path}" because it was not found: ${response.body.trim()}`)
|
||||
}
|
||||
throw error
|
||||
|
|
|
|||
Loading…
Reference in a new issue