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

refactor: pass bad credentials error from branch to repo

parent b7703e3b
No related branches found
No related tags found
No related merge requests found
...@@ -196,6 +196,10 @@ async function processBranch(branchConfig, packageFiles) { ...@@ -196,6 +196,10 @@ async function processBranch(branchConfig, packageFiles) {
logger.debug('Passing repository-changed error up'); logger.debug('Passing repository-changed error up');
throw err; throw err;
} }
if (err.message === 'bad-credentials') {
logger.debug('Passing bad-credentials error up');
throw err;
}
if (err.message === 'lockfile-error') { if (err.message === 'lockfile-error') {
logger.info('Lock file error'); logger.info('Lock file error');
} else if (err.message !== 'registry-failure') { } else if (err.message !== 'registry-failure') {
......
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