📅  最后修改于: 2022-03-11 14:48:37.441000             🧑  作者: Mango
process.on('unhandledRejection', (reason: Error | any, promise: Promise) => {
console.log('Unhandled Rejection at:', promise, 'reason:', reason);
// Application specific logging, throwing an error, or other logic here
});