Skip to content
Snippets Groups Projects
Unverified Commit 5eb23680 authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

fix(cache): pass REPOSITORY_CHANGED error up (#19877)

parent 09fca821
No related merge requests found
/* istanbul ignore file */
import { REPOSITORY_CHANGED } from '../../constants/error-messages';
import { logger } from '../../logger';
import { platform } from '../../modules/platform';
import { getCache } from '../../util/cache/repository';
......@@ -94,6 +95,9 @@ async function generateBranchCache(
logger.warn({ err, branchName }, 'HTTP error generating branch cache');
return null;
}
if (err.message === REPOSITORY_CHANGED) {
throw err;
}
logger.error({ err, branchName }, 'Error generating branch cache');
return null;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment