From a512ea973dc77d2a979c2b5dce3d8735b2adc10d Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Tue, 16 Jan 2024 22:02:05 +0100 Subject: [PATCH] Display a notif to user in case of ms login error --- src/server/minecraft.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/minecraft.js b/src/server/minecraft.js index ac85e4c..746660d 100644 --- a/src/server/minecraft.js +++ b/src/server/minecraft.js @@ -69,6 +69,8 @@ export default class Minecraft { }) }).catch(err => { event.sender.send('loginError') + logger.error('[MS login]' + lst(err)) + this.showNotification('Une erreur de connexion à Xbox est survenue', lst(err), 'error') if (err !== 'error.gui.closed') { logger.error('[MS login] ' + lst(err)) this.showNotification('Une erreur de connexion à Xbox est survenue', lst(err), 'error')