修复清空文件夹报错

This commit is contained in:
whyour
2023-10-13 15:35:50 +08:00
parent b8a9b26ca3
commit 26b06c17c5
2 changed files with 2 additions and 6 deletions
-4
View File
@@ -30,13 +30,9 @@ export default async ({ server }: { server: Server }) => {
process.on('uncaughtException', (error) => {
Logger.error('Uncaught exception:', error);
console.error('Uncaught exception:', error);
process.exit(1);
});
process.on('unhandledRejection', (reason, promise) => {
Logger.error('Unhandled rejection:', reason, promise);
console.error('Unhandled rejection:', reason, promise);
process.exit(1);
});
};