fix(secret-sync): throw SecretSyncError for invalid secret names with retry flag

This commit is contained in:
Victor Santos
2025-10-23 21:05:15 -03:00
parent 41e3026658
commit 1cff262271
@@ -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 = {};