Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

Commit

Permalink
chore(package): update xo to version 0.23.0
Browse files Browse the repository at this point in the history
  • Loading branch information
greenkeeper[bot] authored and pvdlg committed Sep 3, 2018
1 parent c3da8f3 commit 43b48a3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions cli.js
Expand Up @@ -57,9 +57,9 @@ module.exports = async () => {
} else if (!script) {
process.exitCode = 1;
}
} catch (err) {
if (err.name !== 'YError') {
console.error(err);
} catch (error) {
if (error.name !== 'YError') {
console.error(error);
}
process.exitCode = 1;
}
Expand Down
6 changes: 3 additions & 3 deletions lib/get-jobs.js
Expand Up @@ -28,14 +28,14 @@ module.exports = async (travisOpts, travisToken, buildId, retryOpts) => {
}),
Object.assign({retries: 5, factor: 2, minTimeout: 1000}, retryOpts)
)).body.jobs;
} catch (err) {
} catch (error) {
// https://github.com/semantic-release/travis-deploy-once/issues/3
// https://github.com/pwmckenna/node-travis-ci/issues/17
if (err.response && err.response.body && err.response.body.file === 'not found') {
if (error.response && error.response.body && error.response.body.file === 'not found') {
throw new Error(
'The GitHub user of the "GH_TOKEN" has not authenticated Travis CI yet. Go to https://travis-ci.com/, login with the GitHub user of this token and then restart this job.'
);
}
throw err;
throw error;
}
};
10 changes: 5 additions & 5 deletions lib/wait-for-other-jobs.js
Expand Up @@ -33,9 +33,9 @@ module.exports = async (
// On subsequent attempts call the API to get the most recent statuses
try {
jobs = await getJobs(travisOpts, travisToken, buildId, jobsRetryOpts);
} catch (err) {
logger.log(`Failed attempt ${attempt}, because Travis API returned the error: ${err}.`);
throw err;
} catch (error) {
logger.log(`Failed attempt ${attempt}, because Travis API returned the error: ${error}.`);
throw error;
}
}
jobCount = jobs.length;
Expand All @@ -53,9 +53,9 @@ module.exports = async (
await pRetry(run, Object.assign({forever: true, factor: 1.5, minTimeout: 3000, maxTimeout: 15000}, retryOpts));
logger.log(`Success at attempt ${lastAttempt}. All ${jobCount} jobs passed.`);
return true;
} catch (err) {
} catch (error) {
// Abort error
logger.error(`Aborting at attempt ${lastAttempt}. Job ${err.message} failed.`);
logger.error(`Aborting at attempt ${lastAttempt}. Job ${error.message} failed.`);
return false;
}
};
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -44,7 +44,7 @@
"proxyquire": "^2.0.0",
"semantic-release": "^15.0.0",
"sinon": "^6.0.0",
"xo": "^0.22.0"
"xo": "^0.23.0"
},
"engines": {
"node": ">=6"
Expand Down

0 comments on commit 43b48a3

Please sign in to comment.