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

fix(gitFs): catch and throw bad-credentials

parent 302bfb7e
No related branches found
No related tags found
No related merge requests found
......@@ -299,6 +299,13 @@ async function processBranch(branchConfig, prHourlyLimitReached, packageFiles) {
logger.debug('Passing repository-changed error up');
throw err;
}
if (
err.message &&
err.message.startsWith('remote: Invalid username or password')
) {
logger.debug('Throwing bad credentials');
throw new Error('bad-credentials');
}
if (err.message === 'bad-credentials') {
logger.debug('Passing bad-credentials error up');
throw err;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment