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