mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Use notebookUtils.getErrorMessage to get the correct msg instead of showing {0} (#5012)
This commit is contained in:
@@ -777,7 +777,7 @@ export class NotebookModel extends Disposable implements INotebookModel {
|
|||||||
}
|
}
|
||||||
await this.shutdownActiveSession();
|
await this.shutdownActiveSession();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.notifyError(localize('shutdownError', "An error occurred when closing the notebook: {0}", err));
|
this.notifyError(localize('shutdownError', "An error occurred when closing the notebook: {0}", notebookUtils.getErrorMessage(err)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -787,7 +787,7 @@ export class NotebookModel extends Disposable implements INotebookModel {
|
|||||||
await this._activeClientSession.ready;
|
await this._activeClientSession.ready;
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
this.notifyError(localize('shutdownClientSessionError', "A client session error occurred when closing the notebook: {0}", err));
|
this.notifyError(localize('shutdownClientSessionError', "A client session error occurred when closing the notebook: {0}", notebookUtils.getErrorMessage(err)));
|
||||||
}
|
}
|
||||||
await this._activeClientSession.shutdown();
|
await this._activeClientSession.shutdown();
|
||||||
this.clearClientSessionListeners();
|
this.clearClientSessionListeners();
|
||||||
|
|||||||
Reference in New Issue
Block a user