mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-03 20:35:54 +02:00
catch messages async errors.
This commit is contained in:
parent
693ac08e10
commit
da3b6df703
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ export class NekoMessages extends EventEmitter<NekoEvents> {
|
||||||
if (typeof this[event] === 'function') {
|
if (typeof this[event] === 'function') {
|
||||||
try {
|
try {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
this[event](payload)
|
await this[event](payload)
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
this._remoteLog.error(`error while processing websocket event`, { event, error })
|
this._remoteLog.error(`error while processing websocket event`, { event, error })
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue