feat: add custom message for 429 errors (#1366)

This commit is contained in:
Abhi 2025-06-23 23:43:00 -04:00 committed by GitHub
parent f7caca5f94
commit d3f13c71ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 133 additions and 25 deletions

View file

@ -128,7 +128,12 @@ export async function runNonInteractive(
}
}
} catch (error) {
console.error(parseAndFormatApiError(error));
console.error(
parseAndFormatApiError(
error,
config.getContentGeneratorConfig().authType,
),
);
process.exit(1);
} finally {
if (isTelemetrySdkInitialized()) {