remove unhandled promise process
This commit is contained in:
@@ -273,10 +273,6 @@ async function main() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
process.on('unhandledRejection', (reason, promise) => {
|
|
||||||
console.error('Unhandled Rejection at:', promise, 'reason:', reason);
|
|
||||||
});
|
|
||||||
|
|
||||||
async function recursiveTryCatch(f: () => void) {
|
async function recursiveTryCatch(f: () => void) {
|
||||||
try {
|
try {
|
||||||
await f();
|
await f();
|
||||||
|
|||||||
Reference in New Issue
Block a user