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
1
lib/api-client.js
generated
1
lib/api-client.js
generated
|
|
@ -166,6 +166,7 @@ exports.computeAutomationID = computeAutomationID;
|
|||
function wrapApiConfigurationError(e) {
|
||||
if ((0, util_1.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 util_1.ConfigurationError(e.message);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue