mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -05:00
Correctly handle exceptions in package upgrade promise. (#7734)
This commit is contained in:
@@ -463,12 +463,16 @@ export class JupyterServerInstallation {
|
||||
}
|
||||
|
||||
if (doUpgrade) {
|
||||
let installPromise = new Promise(async resolve => {
|
||||
if (this._usingConda) {
|
||||
await this.installCondaPackages(condaPackagesToInstall, true);
|
||||
let installPromise = new Promise(async (resolve, reject) => {
|
||||
try {
|
||||
if (this._usingConda) {
|
||||
await this.installCondaPackages(condaPackagesToInstall, true);
|
||||
}
|
||||
await this.installPipPackages(pipPackagesToInstall, true);
|
||||
resolve();
|
||||
} catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
await this.installPipPackages(pipPackagesToInstall, true);
|
||||
resolve();
|
||||
});
|
||||
|
||||
if (promptForUpgrade) {
|
||||
|
||||
Reference in New Issue
Block a user