Skip to content

Commit 0a89592

Browse files
committed
feat: add uncaughtException handler to log errors in WebDAV server
1 parent c735f54 commit 0a89592

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/webdav/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,8 @@ const init = async () => {
4040
.catch((err) => webdavLogger.error('Failed to start WebDAV server', err));
4141
};
4242

43+
process.on('uncaughtException', (err) => {
44+
webdavLogger.error('Unhandled exception:', err);
45+
});
46+
4347
init();

0 commit comments

Comments
 (0)