mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Convert caught error to string in notebook onLoad error message. (#4276)
This commit is contained in:
@@ -224,7 +224,7 @@ export class NotebookComponent extends AngularDisposable implements OnInit, OnDe
|
|||||||
this.setLoading(false);
|
this.setLoading(false);
|
||||||
this._modelReadyDeferred.resolve(this._model);
|
this._modelReadyDeferred.resolve(this._model);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.setViewInErrorState(localize('displayFailed', 'Could not display contents: {0}', error));
|
this.setViewInErrorState(localize('displayFailed', 'Could not display contents: {0}', notebookUtils.getErrorMessage(error)));
|
||||||
this.setLoading(false);
|
this.setLoading(false);
|
||||||
this._modelReadyDeferred.reject(error);
|
this._modelReadyDeferred.reject(error);
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user