mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 15:27:46 +00:00
fix(secret-sync): throw SecretSyncError for invalid secret names with retry flag
This commit is contained in:
@@ -421,9 +421,10 @@ export const secretSyncQueueFactory = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (invalidNameCount > 0) {
|
if (invalidNameCount > 0) {
|
||||||
throw new Error(
|
throw new SecretSyncError({
|
||||||
`Found ${invalidNameCount} invalid secret name${invalidNameCount === 1 ? "" : "s"}. ${errorMessage}`
|
message: `Found ${invalidNameCount} invalid secret name${invalidNameCount === 1 ? "" : "s"}. ${errorMessage}`,
|
||||||
);
|
shouldRetry: false
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const importedSecretMap: TSecretMap = {};
|
const importedSecretMap: TSecretMap = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user