mirror of
https://github.com/WorldEditAxe/eaglerproxy.git
synced 2024-11-21 13:06:05 -08:00
add additional handling for errors
This commit is contained in:
parent
a543a8d62b
commit
94c628b822
|
@ -86,7 +86,7 @@ export class Proxy extends EventEmitter {
|
||||||
});
|
});
|
||||||
|
|
||||||
process.on("unhandledRejection", (err) => {
|
process.on("unhandledRejection", (err) => {
|
||||||
this._logger.warn(`An unhandled rejection was caught! Rejection: ${err}`);
|
this._logger.warn(`An unhandled rejection was caught! Rejection: ${(err as Error).stack || err}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user