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

logs: setMeta repository before handling error

parent a3043c47
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,9 @@ module.exports = {
};
async function handleError(config, err) {
logger.setMeta({
repository: config.repository,
});
if (err.message === 'uninitiated') {
logger.info('Repository is uninitiated - skipping');
delete config.branchList; // eslint-disable-line no-param-reassign
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment