Skip to content

Commit 3e94e32

Browse files
committed
add rate limit exhaustion as configuration error
1 parent 80f9930 commit 3e94e32

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

lib/cli-errors.js

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/cli-errors.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cli-errors.ts

+8
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ export enum CliConfigErrorCategory {
136136
OutOfMemoryOrDisk = "OutOfMemoryOrDisk",
137137
PackCannotBeFound = "PackCannotBeFound",
138138
PackMissingAuth = "PackMissingAuth",
139+
RateLimitExhausted = "RateLimitExhausted",
139140
SwiftBuildFailed = "SwiftBuildFailed",
140141
UnsupportedBuildMode = "UnsupportedBuildMode",
141142
}
@@ -266,6 +267,13 @@ export const cliErrorsConfig: Record<
266267
),
267268
],
268269
},
270+
[CliConfigErrorCategory.RateLimitExhausted]: {
271+
cliErrorMessageCandidates: [
272+
new RegExp(
273+
"API rate limit exceeded for installation\\. If you reach out to GitHub Support for help, please include the request ID",
274+
),
275+
],
276+
},
269277
[CliConfigErrorCategory.SwiftBuildFailed]: {
270278
cliErrorMessageCandidates: [
271279
new RegExp(

0 commit comments

Comments
 (0)