Update run.js

This commit is contained in:
typicode
2016-11-28 14:07:30 +01:00
committed by GitHub
parent b6b48facee
commit cb1d474ac6

View File

@ -163,7 +163,8 @@ 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', () => { process.stdin.on('error', () => {
console.log(' Error, can\'t read from stdin') console.log(` Error, can't read from stdin`)
console.log(` Creating a snapshot from the CLI won't be possible`)
}) })
process.stdin.setEncoding('utf8') process.stdin.setEncoding('utf8')
process.stdin.on('data', (chunk) => { process.stdin.on('data', (chunk) => {