Skip to content

Commit b39fd56

Browse files
authored
Re microsoft#164715. Better error handling of notebook opening (microsoft#164737)
1 parent 942cc4b commit b39fd56

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/workbench/contrib/notebook/browser/notebookEditor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ export class NotebookEditor extends EditorPane implements IEditorPaneWithSelecti
290290
}
291291
}
292292
} catch (e) {
293-
const error = createErrorWithActions(e instanceof Error ? e : new Error(e.message), [
293+
console.warn(e);
294+
const error = createErrorWithActions(e instanceof Error ? e : new Error((e ? e.message : '')), [
294295
toAction({
295296
id: 'workbench.notebook.action.openInTextEditor', label: localize('notebookOpenInTextEditor', "Open in Text Editor"), run: async () => {
296297
const activeEditorPane = this._editorService.activeEditorPane;

0 commit comments

Comments
 (0)