Convert caught error to string in notebook onLoad error message. (#4276)

This commit is contained in:
Cory Rivera
2019-03-04 16:49:23 -08:00
committed by GitHub
parent f4365dbd3a
commit 5248c8f78d

View File

@@ -224,7 +224,7 @@ export class NotebookComponent extends AngularDisposable implements OnInit, OnDe
this.setLoading(false);
this._modelReadyDeferred.resolve(this._model);
} 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._modelReadyDeferred.reject(error);
} finally {