Fix incorrect handling of errors during init

Closes #600. I stumbled across this issue quite by accident while
working on something else!
This commit is contained in:
Oliver Hamlet
2016-07-15 18:23:19 +01:00
parent 60cdb1c428
commit 4b623cfc35
+5 -2
View File
@@ -229,13 +229,16 @@
dom.setGameMenuItems(loot.settings.games);
dom.updateEnabledGames(loot.installedGames);
dom.updateSelectedGame(loot.game.folder);
}).then(getInitErrors)
})
.catch(handlePromiseError)
.then(getInitErrors)
.then(() => setGameData(loot))
.catch(handleInitErrors)
.then(() => {
if (loot.settings.lastVersion !== loot.version) {
dom.openDialog('firstRun');
}
}).catch(handlePromiseError);
})
.catch(handlePromiseError);
};
}));