From 12d77abbd3f114384026b985ec42e648ee641bef Mon Sep 17 00:00:00 2001 From: MasterAcnolo <68693319+MasterAcnolo@users.noreply.github.com> Date: Sat, 15 Aug 2026 17:27:50 +0200 Subject: [PATCH] fix: discordRPC error display. I voluntarily disabled raw error printing, because it could have false positive. Could be reenable on purpose --- app/discordRPC.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/discordRPC.js b/app/discordRPC.js index c74e3e0..9bd1beb 100644 --- a/app/discordRPC.js +++ b/app/discordRPC.js @@ -103,7 +103,9 @@ function startRPC() { }); rpc.login({ clientId }).catch(err => { - logger.error("Unable to connect to the RPC:", err); + // Since 1.6.2, it no longer print the error. This is because if discord is not opened, it will send an error. + // logger.error("Unable to connect to the RPC:", err); + logger.info("Unable to connect to the Discord RPC. Discord is maybe not launched"); }); } @@ -132,7 +134,8 @@ async function stopRPC() { await rpc.destroy(); } catch (err) { - logger.error("Error while closing the RPC:", err); + // Since 1.6.2, it no longer print the error. This is because if discord is not opened, it will send an error. + // logger.error("Error while closing the RPC:", err); } } }