Skip to content

Commit

Permalink
#50 No warning and error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ihorkrys committed Dec 21, 2016
1 parent 6b74bb6 commit 1da10f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/run-compilation.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ module.exports = function runCompilation(options, compiler, done) {
return f.errored;
});

if (!options.quiet) {
console.log(chalk.yellow(options.formatter(lint.results)));
}

if (options.failOnError && errors.length) {
done(new Error('Failed because of a stylelint error.\n'));
} else {
Expand Down

0 comments on commit 1da10f3

Please sign in to comment.