Skip to content

Commit

Permalink
Mark commit not found as a user error too
Browse files Browse the repository at this point in the history
  • Loading branch information
henrymercer committed Apr 15, 2024
1 parent 2b2cee5 commit a22989d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/api-client.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/api-client.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/api-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ export function wrapApiConfigurationError(e: unknown) {
if (isHTTPError(e)) {
if (
e.message.includes("API rate limit exceeded for site ID installation") ||
e.message.includes("commit not found") ||
/^ref .* not found in this repository$/.test(e.message)
) {
return new ConfigurationError(e.message);
Expand Down

0 comments on commit a22989d

Please sign in to comment.