mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Add more error handling for python installation (#22650)
This commit is contained in:
@@ -430,7 +430,7 @@ export class JupyterServerInstallation implements IJupyterServerInstallation {
|
|||||||
|
|
||||||
this._installInProgress = true;
|
this._installInProgress = true;
|
||||||
this._installCompletion = new Deferred<void>();
|
this._installCompletion = new Deferred<void>();
|
||||||
|
try {
|
||||||
this._pythonInstallationPath = installSettings.installPath;
|
this._pythonInstallationPath = installSettings.installPath;
|
||||||
this._usingExistingPython = installSettings.existingPython;
|
this._usingExistingPython = installSettings.existingPython;
|
||||||
await this.configurePackagePaths();
|
await this.configurePackagePaths();
|
||||||
@@ -470,11 +470,16 @@ export class JupyterServerInstallation implements IJupyterServerInstallation {
|
|||||||
.catch(err => {
|
.catch(err => {
|
||||||
let errorMsg = msgDependenciesInstallationFailed(utils.getErrorMessage(err));
|
let errorMsg = msgDependenciesInstallationFailed(utils.getErrorMessage(err));
|
||||||
op.updateStatus(azdata.TaskStatus.Failed, errorMsg);
|
op.updateStatus(azdata.TaskStatus.Failed, errorMsg);
|
||||||
this._installCompletion.reject(errorMsg);
|
this._installCompletion.reject(new Error(errorMsg));
|
||||||
this._installInProgress = false;
|
this._installInProgress = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} catch (err) {
|
||||||
|
let errorMsg = msgDependenciesInstallationFailed(utils.getErrorMessage(err));
|
||||||
|
this._installCompletion.reject(new Error(errorMsg));
|
||||||
|
this._installInProgress = false;
|
||||||
|
}
|
||||||
return this._installCompletion.promise;
|
return this._installCompletion.promise;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user