Mark commit not found as a user error too
This commit is contained in:
parent
2b2cee5229
commit
a22989dcd4
3 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue