From b6b48faceea09a145da3e3d0b64567bce6f5b33a Mon Sep 17 00:00:00 2001 From: typicode Date: Mon, 28 Nov 2016 13:33:29 +0100 Subject: [PATCH] Fix standard error --- src/cli/run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/run.js b/src/cli/run.js index 49a5fd3..92fcbd5 100644 --- a/src/cli/run.js +++ b/src/cli/run.js @@ -162,7 +162,7 @@ module.exports = function (argv) { // Support nohup // https://github.com/typicode/json-server/issues/221 - process.stdin.on('error', (err) => { + process.stdin.on('error', () => { console.log(' Error, can\'t read from stdin') }) process.stdin.setEncoding('utf8')