Experimental changes in preparation for auto-update support.

This commit is contained in:
Daniel Scalzi
2018-04-28 04:16:09 -04:00
parent c6637d18e1
commit 5b74ecef21
6 changed files with 138 additions and 35 deletions

View File

@@ -74,9 +74,11 @@ exports.validateSelected = async function(){
ConfigManager.updateAuthAccount(current.uuid, session.accessToken)
ConfigManager.save()
} catch(err) {
if(err && err.message === 'ForbiddenOperationException'){
return false
console.debug('Error while validating selected profile:', err)
if(err && err.error === 'ForbiddenOperationException'){
// What do we do?
}
return false
}
return true
} else {