mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Revert "Prints out the actual error that happened" (#11212)
* Revert "Prints out the actual error that happened (#11208)"
This reverts commit 6eb88924f6.
* Fix the JSON.stringify
This commit is contained in:
@@ -231,7 +231,7 @@ export abstract class AzureAuth implements vscode.Disposable {
|
||||
await this.refreshAccessToken(account.key, baseToken.refreshToken, tenant, resource);
|
||||
} catch (ex) {
|
||||
console.log(`Could not refresh access token for ${JSON.stringify(tenant)} - silently removing the tenant from the user's account.`);
|
||||
console.log(`Actual error: ${JSON.stringify(ex?.response?.data ?? ex.message ?? ex), undefined, 2}`);
|
||||
console.log(`Actual error: ${JSON.stringify(ex?.response?.data ?? ex.message ?? ex, undefined, 2)}`);
|
||||
azureAccount.properties.tenants = azureAccount.properties.tenants.filter(t => t.id !== tenant.id);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user