Skip to content
Snippets Groups Projects
Commit 4f8a3a4f authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(cache): warn not error for pull 404

parent c1663f0b
No related merge requests found
......@@ -76,6 +76,14 @@ async function generateBranchCache(branch: BranchConfig): Promise<BranchCache> {
upgrades,
};
} catch (err) {
// istanbul ignore if
if (err.response?.statusCode === 404) {
logger.warn(
{ err, branchName },
'404 error when generating branch cache'
);
return null;
}
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