Skip to content

Commit

Permalink
refactor(instructions): wrap makeConfig under try/catch
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Aug 1, 2017
1 parent 959d3ce commit b132e77
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion instructions.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@
const path = require('path')

module.exports = async function (cli) {
await cli.makeConfig('session.js', path.join(__dirname, './templates/config.mustache'))
try {
await cli.makeConfig('session.js', path.join(__dirname, './templates/config.mustache'))
} catch (error) {
// ignore if session.js already exists
}
}

0 comments on commit b132e77

Please sign in to comment.