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

fix: bad-credentials

parent bf9c4a84
No related branches found
Tags 39.79.0
No related merge requests found
...@@ -94,6 +94,11 @@ async function handleError(config, err) { ...@@ -94,6 +94,11 @@ async function handleError(config, err) {
delete config.branchList; // eslint-disable-line no-param-reassign delete config.branchList; // eslint-disable-line no-param-reassign
return err.message; return err.message;
} }
if (err.message === 'bad-credentials') {
logger.warn('Bad credentials - aborting');
delete config.branchList; // eslint-disable-line no-param-reassign
return err.message;
}
if (err.message === 'integration-unauthorized') { if (err.message === 'integration-unauthorized') {
logger.warn('Integration unauthorized - aborting'); logger.warn('Integration unauthorized - aborting');
delete config.branchList; // eslint-disable-line no-param-reassign delete config.branchList; // eslint-disable-line no-param-reassign
......
...@@ -24,6 +24,7 @@ describe('workers/repository/error', () => { ...@@ -24,6 +24,7 @@ describe('workers/repository/error', () => {
'blocked', 'blocked',
'not-found', 'not-found',
'forbidden', 'forbidden',
'bad-credentials',
'rate-limit-exceeded', 'rate-limit-exceeded',
'lockfile-error', 'lockfile-error',
'disk-space', 'disk-space',
......
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