Skip to content

Commit 0420af3

Browse files
author
HunteRoi
committed
fix: log errors from Discord websocket
1 parent 488563a commit 0420af3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/events/error.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { DatadropClient } from '../datadrop';
2+
3+
module.exports = async (client: DatadropClient, error: Error) => {
4+
client.logger.error(`${error.name}: ${error.message}\n${error.cause}\n${error.stack}`);
5+
};

0 commit comments

Comments
 (0)