Skip to content

Commit

Permalink
fix: do not put a scary error message when checking files (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
varl authored Mar 7, 2019
1 parent 1037936 commit 4cecb27
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cmds/js_cmds/check.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,11 @@ exports.handler = argv => {
const success = prettyFiles.length > 0

if (success) {
log.info(`Files to style:`)
log.info(`${prettyFiles.length} file(s) needs to be formatted:`)
prettyFiles.forEach(f =>
log.print(`${path.relative(process.cwd(), f)}`)
)
log.print('')
log.error(`${prettyFiles.length} file(s) failed the style check`)
process.exit(1)
} else {
if (js.length > 0) {
Expand Down

0 comments on commit 4cecb27

Please sign in to comment.