fix: discordRPC error display. I voluntarily disabled raw error printing, because it could have false positive. Could be reenable on purpose

This commit is contained in:
MasterAcnolo
2026-08-15 17:27:50 +02:00
parent 398de8113d
commit 12d77abbd3

View File

@@ -103,7 +103,9 @@ function startRPC() {
}); });
rpc.login({ clientId }).catch(err => { 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(); await rpc.destroy();
} catch (err) { } 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);
} }
} }
} }