mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-08-05 16:24:44 +00:00
refactor: add GitHub REST API error to CustomError class (#3272)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user