core: 优化错误信息显示

This commit is contained in:
undefined committed 2021-07-29 16:33:19 +08:00
1 parent 10a1de0741
commit 4d6efdc37f
4 files changed
+9 -27

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ if (cluster.isMaster) {
});
if (process.env.NODE_ENV !== 'test') {
process.stdin.setEncoding('utf-8');
process.stdin.setRawMode(false);
if (process.stdin.setRawMode) process.stdin.setRawMode(false);
process.stdin.on('data', (buf) => {
const input = buf.toString();
if (input[0] === '@') {