From 48fb7cf4b49ff948bd1e6848165fde77ea7e8543 Mon Sep 17 00:00:00 2001 From: Mike Allanson Date: Sat, 1 Aug 2020 18:53:13 +0100 Subject: [PATCH] Fix inconsistent trailing newlines in CLI error output (#4876) --- lib/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli.js b/lib/cli.js index cf8179e083..f1805e6c83 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -534,7 +534,7 @@ module.exports = (argv) => { * @returns {void} */ function handleError(err) { - process.stderr.write(err.stack); + process.stderr.write(err.stack + EOL); const exitCode = typeof err.code === 'number' ? err.code : 1; process.exitCode = exitCode;