mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-26 14:50:31 -04:00
Clear all saved accounts regardless of failure (#10107)
This commit is contained in:
@@ -279,10 +279,14 @@ export class AccountManagementService implements IAccountManagementService {
|
|||||||
|
|
||||||
let finalResult = true;
|
let finalResult = true;
|
||||||
for (const account of accounts) {
|
for (const account of accounts) {
|
||||||
const removeResult = await this.removeAccount(account.key);
|
try {
|
||||||
if (removeResult === false) {
|
const removeResult = await this.removeAccount(account.key);
|
||||||
this._logService.info('Error when removing %s.', account.key);
|
if (removeResult === false) {
|
||||||
finalResult = false;
|
this._logService.info('Error when removing %s.', account.key);
|
||||||
|
finalResult = false;
|
||||||
|
}
|
||||||
|
} catch (ex) {
|
||||||
|
this._logService.error('Error when removing an account %s. Exception: %s', account.key, JSON.stringify(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return finalResult;
|
return finalResult;
|
||||||
|
|||||||
Reference in New Issue
Block a user