From 5248c8f78d06e2f889e0266bf594b8d0d71bce82 Mon Sep 17 00:00:00 2001 From: Cory Rivera Date: Mon, 4 Mar 2019 16:49:23 -0800 Subject: [PATCH] Convert caught error to string in notebook onLoad error message. (#4276) --- src/sql/parts/notebook/notebook.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {