Mark commit not found as a user error too

This commit is contained in:
Henry Mercer 2024-04-15 13:14:52 +01:00
parent 2b2cee5229
commit a22989dcd4
3 changed files with 3 additions and 1 deletions

View file

@ -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);