mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 16:27:40 +00:00
update message
This commit is contained in:
@@ -437,7 +437,7 @@ export const expandSecretReferencesFactory = ({
|
|||||||
|
|
||||||
if (!canExpandValue(environment, secretPath))
|
if (!canExpandValue(environment, secretPath))
|
||||||
throw new UnauthorizedError({
|
throw new UnauthorizedError({
|
||||||
message: `You don't have access to secret ${secretKey} in environment ${environment} of secret path ${secretPath} `
|
message: `You are attempting to reference secret named ${secretKey} from environment ${environment} in path ${secretPath} which you do not have access to.`
|
||||||
});
|
});
|
||||||
|
|
||||||
// eslint-disable-next-line no-continue,no-await-in-loop
|
// eslint-disable-next-line no-continue,no-await-in-loop
|
||||||
@@ -462,7 +462,7 @@ export const expandSecretReferencesFactory = ({
|
|||||||
|
|
||||||
if (!canExpandValue(secretReferenceEnvironment, secretReferencePath))
|
if (!canExpandValue(secretReferenceEnvironment, secretReferencePath))
|
||||||
throw new UnauthorizedError({
|
throw new UnauthorizedError({
|
||||||
message: `You don't have access to secret ${secretReferenceKey} in environment ${secretReferenceEnvironment} of secret path ${secretReferencePath} `
|
message: `You are attempting to reference secret named ${secretReferenceKey} from environment ${secretReferenceEnvironment} in path ${secretReferencePath} which you do not have access to.`
|
||||||
});
|
});
|
||||||
|
|
||||||
// eslint-disable-next-line no-await-in-loop
|
// eslint-disable-next-line no-await-in-loop
|
||||||
|
|||||||
Reference in New Issue
Block a user