Fix standard error

This commit is contained in:
typicode
2016-11-28 13:33:29 +01:00
parent c527e1ef87
commit b6b48facee

View File

@ -162,7 +162,7 @@ module.exports = function (argv) {
// Support nohup // Support nohup
// https://github.com/typicode/json-server/issues/221 // 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') console.log(' Error, can\'t read from stdin')
}) })
process.stdin.setEncoding('utf8') process.stdin.setEncoding('utf8')