mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +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) {
|
||||
throw new Error(
|
||||
`Found ${invalidNameCount} invalid secret name${invalidNameCount === 1 ? "" : "s"}. ${errorMessage}`
|
||||
);
|
||||
throw new SecretSyncError({
|
||||
message: `Found ${invalidNameCount} invalid secret name${invalidNameCount === 1 ? "" : "s"}. ${errorMessage}`,
|
||||
shouldRetry: false
|
||||
});
|
||||
}
|
||||
|
||||
const importedSecretMap: TSecretMap = {};
|
||||
|
||||
Reference in New Issue
Block a user