refactor: add GitHub REST API error to CustomError class (#3272)

This commit is contained in:
Alexandr Garbuzov
2023-09-22 17:43:58 +02:00
committed by GitHub
parent 65c3300189
commit 7bf4a873f1
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ const totalCommitsFetcher = async (username) => {
if (!totalCount || isNaN(totalCount)) {
throw new CustomError(
"Could not fetch total commits.",
CustomError.GRAPHQL_ERROR,
CustomError.GITHUB_REST_API_ERROR,
);
}
return totalCount;