refactor: use more clear retryer error messages (#3216)

This commit is contained in:
Alexandr Garbuzov
2023-09-12 10:07:20 +02:00
committed by GitHub
parent c42798b39e
commit 976db143de
2 changed files with 10 additions and 3 deletions
+4 -2
View File
@@ -381,8 +381,9 @@ const CONSTANTS = {
};
const SECONDARY_ERROR_MESSAGES = {
MAX_RETRY:
"Please add an env variable called PAT_1 with your github token in vercel",
MAX_RETRY: "Downtime due to GitHub API rate limiting",
NO_TOKENS:
"Please add an env variable called PAT_1 with your GitHub API token in vercel",
USER_NOT_FOUND: "Make sure the provided username is not an organization",
GRAPHQL_ERROR: "Please try again later",
WAKATIME_USER_NOT_FOUND: "Make sure you have a public WakaTime profile",
@@ -403,6 +404,7 @@ class CustomError extends Error {
}
static MAX_RETRY = "MAX_RETRY";
static NO_TOKENS = "NO_TOKENS";
static USER_NOT_FOUND = "USER_NOT_FOUND";
static GRAPHQL_ERROR = "GRAPHQL_ERROR";
static WAKATIME_ERROR = "WAKATIME_ERROR";