INNER CODE UNIT · JavaScript
createGithubFetchError
EdgeTypE/better-deepseek · src/background/index.js:203
function createGithubFetchError(message, options = {}) {
const error = new Error(message);
if (Number.isFinite(options.status)) {
error.status = Number(options.status);
}
if (options.authRejected) {
error.authRejected = true;
}
if (options.rateLimited) {
error.rateLimited = true;
}
return error;
}
export function normalizeGithubCommitCount(count) {
return normalizeGitHubCommitCount(count);
}