mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -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._installCompletion = new Deferred<void>();
|
||||
|
||||
try {
|
||||
this._pythonInstallationPath = installSettings.installPath;
|
||||
this._usingExistingPython = installSettings.existingPython;
|
||||
await this.configurePackagePaths();
|
||||
@@ -470,11 +470,16 @@ export class JupyterServerInstallation implements IJupyterServerInstallation {
|
||||
.catch(err => {
|
||||
let errorMsg = msgDependenciesInstallationFailed(utils.getErrorMessage(err));
|
||||
op.updateStatus(azdata.TaskStatus.Failed, errorMsg);
|
||||
this._installCompletion.reject(errorMsg);
|
||||
this._installCompletion.reject(new Error(errorMsg));
|
||||
this._installInProgress = false;
|
||||
});
|
||||
}
|
||||
});
|
||||
} catch (err) {
|
||||
let errorMsg = msgDependenciesInstallationFailed(utils.getErrorMessage(err));
|
||||
this._installCompletion.reject(new Error(errorMsg));
|
||||
this._installInProgress = false;
|
||||
}
|
||||
return this._installCompletion.promise;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user