Only log if an actual error occurred (#8979)

This commit is contained in:
Charles Gagnon
2020-01-28 13:05:31 -08:00
committed by GitHub
parent 7ef3f003dd
commit 461dd79bc2

View File

@@ -78,7 +78,9 @@ export class AzureAccountProvider implements azdata.AccountProvider {
response = response as TokenResponse; response = response as TokenResponse;
context.cache.add([response], (err, result) => { context.cache.add([response], (err, result) => {
console.log(err, result); if (err || !result) {
console.log(`Unexpected error adding token to cache ${err}`);
}
}); });
return response; return response;