From 94c628b8222e4026e22f203b4caaeab48be98b8c Mon Sep 17 00:00:00 2001 From: q13x <84165981+WorldEditAxe@users.noreply.github.com> Date: Fri, 24 May 2024 11:34:09 -0700 Subject: [PATCH] add additional handling for errors --- src/proxy/Proxy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proxy/Proxy.ts b/src/proxy/Proxy.ts index c806773..f002e2b 100644 --- a/src/proxy/Proxy.ts +++ b/src/proxy/Proxy.ts @@ -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}`); }); }