diff --git a/src/sql/parts/notebook/notebook.component.ts b/src/sql/parts/notebook/notebook.component.ts index 2a761e72d6..d7faaa1f26 100644 --- a/src/sql/parts/notebook/notebook.component.ts +++ b/src/sql/parts/notebook/notebook.component.ts @@ -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 {