We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40e2646 commit a0c5447Copy full SHA for a0c5447
src/api-client.ts
@@ -283,10 +283,12 @@ export function wrapApiConfigurationError(e: unknown) {
283
const httpError = asHTTPError(e);
284
if (httpError !== undefined) {
285
if (
286
- httpError.message.includes("API rate limit exceeded") ||
287
- httpError.message.includes("commit not found") ||
288
- httpError.message.includes("Resource not accessible by integration") ||
289
- /ref .* not found in this repository/.test(httpError.message)
+ [
+ /API rate limit exceeded/,
+ /commit not found/,
+ /Resource not accessible by integration/,
290
+ /ref .* not found in this repository/,
291
+ ].some((pattern) => pattern.test(httpError.message))
292
) {
293
return new ConfigurationError(httpError.message);
294
}
0 commit comments