add additional handling for errors

This commit is contained in:
q13x 2024-05-24 11:34:09 -07:00
parent a543a8d62b
commit 94c628b822

View File

@ -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}`);
});
}