remove unhandled promise process

This commit is contained in:
Nour Alharithi
2023-12-12 07:36:08 -08:00
parent f3a1e9e22d
commit 43dfc3a865

View File

@@ -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) {
try {
await f();