mirror of https://github.com/Nofated095/Q2TG.git
chore: 增加 node 版本非 18 时的提示
This commit is contained in:
parent
b64c6f7a4d
commit
c0cadee504
|
@ -12,6 +12,11 @@ import db from './models/db';
|
|||
},
|
||||
});
|
||||
const log = getLogger('Main');
|
||||
|
||||
if (!process.versions.node.startsWith('18.')) {
|
||||
log.warn('当前正在使用的 Node.JS 版本为', process.versions.node, ',未经测试');
|
||||
}
|
||||
|
||||
process.on('unhandledRejection', error => {
|
||||
log.error('UnhandledException: ', error);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue