Adjust error response wording

This commit is contained in:
Nora
2023-06-05 15:42:00 +00:00
parent 876b92aa98
commit 945594d47a

View File

@@ -53,14 +53,14 @@ async function provideOctokitWithThrottling(
throttle: {
onRateLimit: (retryAfter: number, options: any): boolean => {
void showAndLogWarningMessage(
`Request quota exhausted for request ${options.method} ${options.url}. Retrying after ${retryAfter} seconds!`,
`Rate Limit detected for request ${options.method} ${options.url}. Retrying after ${retryAfter} seconds!`,
);
return true;
},
onSecondaryRateLimit: (_retryAfter: number, options: any): void => {
void showAndLogWarningMessage(
`SecondaryRateLimit detected for request ${options.method} ${options.url}`,
`Secondary Rate Limit detected for request ${options.method} ${options.url}`,
);
},
},