4
0
mirror of https://github.com/AltarikMC/Launcher synced 2024-11-24 06:39:50 +01:00

Fix error not always been formatted

This commit is contained in:
Quentin Legot 2024-03-06 21:33:39 +01:00
parent 72d18c2205
commit e52c53b56e

View File

@ -6,7 +6,7 @@ import fs from 'fs'
import { join } from 'path'
import zip from 'extract-zip'
import logger from 'electron-log'
import { Auth, lst } from 'msmc'
import { Auth } from 'msmc'
import decompress from 'decompress'
import decompressTar from 'decompress-targz'
@ -65,13 +65,13 @@ export default class Minecraft {
}).catch(err => {
event.sender.send('loginError')
this.showNotification('Erreur de connexion à Mojang', err, 'error')
logger.error('[MS login] ' + lst(err))
logger.error('[MS login] ' + err)
})
}).catch(err => {
event.sender.send('loginError')
if (err !== 'error.gui.closed') {
this.showNotification('Une erreur de connexion à Xbox est survenue', err, 'error')
logger.error('[MS login] ' + lst(err))
logger.error('[MS login] ' + err)
}
})
}