mirror of
https://github.com/WorldEditAxe/eaglerproxy.git
synced 2024-11-08 06:56:03 -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) => {
|
||||
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