From 445ac393d37f23089dde26f189c67b38d7f871e5 Mon Sep 17 00:00:00 2001 From: Sequoia McDowell Date: Thu, 6 Oct 2016 18:35:02 -0400 Subject: [PATCH] Fixing truncated error output --- markdownlint.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/markdownlint.js b/markdownlint.js index d9be1a5a7..e309155c0 100755 --- a/markdownlint.js +++ b/markdownlint.js @@ -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()); }