4
0
mirror of https://github.com/AltarikMC/Launcher synced 2024-11-23 06:29:51 +01:00

Merge pull request #367 from AltarikMC/dev

Fix exception at startup
This commit is contained in:
Quentin Legot 2024-01-23 12:55:17 +01:00 committed by GitHub
commit 082dfd48b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 6 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "altarik-launcher", "name": "altarik-launcher",
"author": "Altarik", "author": "Altarik",
"version": "2.1.2", "version": "2.1.3",
"description": "Altarik Launcher", "description": "Altarik Launcher",
"main": "src/server/main.js", "main": "src/server/main.js",
"type": "module", "type": "module",

View File

@ -63,7 +63,7 @@ ipcMain.on('checking-update', () => {
function main () { function main () {
if (electronStartup) { if (electronStartup) {
install.handleSquirrelEvent(app) install(app)
app.quit() app.quit()
return return
} }

View File

@ -64,16 +64,14 @@ export default class Minecraft {
} }
}).catch(err => { }).catch(err => {
event.sender.send('loginError') event.sender.send('loginError')
this.showNotification('Erreur de connexion à Mojang', err, 'error')
logger.error('[MS login] ' + lst(err)) logger.error('[MS login] ' + lst(err))
this.showNotification('Erreur de connexion à Mojang', lst(err), 'error')
}) })
}).catch(err => { }).catch(err => {
event.sender.send('loginError') 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') { 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] ' + lst(err))
this.showNotification('Une erreur de connexion à Xbox est survenue', lst(err), 'error')
} }
}) })
} }