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

View File

@@ -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 = {};