mirror of
https://github.com/AltarikMC/Launcher
synced 2024-11-21 06:09:51 +01:00
Fix error not always been formatted
This commit is contained in:
parent
72d18c2205
commit
e52c53b56e
@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user