Skip to content

Commit a22989d

Browse files
committed
Mark commit not found as a user error too
1 parent 2b2cee5 commit a22989d

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

lib/api-client.js

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

lib/api-client.js.map

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

src/api-client.ts

+1
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ export function wrapApiConfigurationError(e: unknown) {
199199
if (isHTTPError(e)) {
200200
if (
201201
e.message.includes("API rate limit exceeded for site ID installation") ||
202+
e.message.includes("commit not found") ||
202203
/^ref .* not found in this repository$/.test(e.message)
203204
) {
204205
return new ConfigurationError(e.message);

0 commit comments

Comments
 (0)