Skip to content

Commit

Permalink
Merge pull request #11 from Sequoia/master
Browse files Browse the repository at this point in the history
Fixing truncated error output
  • Loading branch information
igorshubovych authored Feb 28, 2017
2 parents b01e932 + 445ac39 commit 1a0c68d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions markdownlint.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ function lint(lintFiles, config) {

function printResult(lintResult, hasErrors) {
if (hasErrors) {
console.error(lintResult.toString());
process.exit(1);
process.stderr.write(lintResult.toString(), process.exit.bind(process, 1));
} else {
console.log(lintResult.toString());
}
Expand Down

0 comments on commit 1a0c68d

Please sign in to comment.