Skip to content

Commit

Permalink
Merge pull request #17 from nnashok/an-exit-code-fix
Browse files Browse the repository at this point in the history
Exit with non-zero on exception
  • Loading branch information
mattvagni authored Oct 8, 2018
2 parents d03a6e4 + 10781a1 commit 9cebdd0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env node

const inquirer = require('inquirer');
const process = require('process');
const {renderFiles} = require('./lib/renderer');
const {makeFieldQuestions, makeTemplateQuestion} = require('./lib/questions');
const {getConfig, getTemplateConfig} = require('./lib/config');
Expand Down Expand Up @@ -36,4 +37,5 @@ Promise.resolve()
})
.catch(e => {
log.error(e);
process.exit(1);
});

0 comments on commit 9cebdd0

Please sign in to comment.