Skip to content

Commit dd585ed

Browse files
committed
better error message
1 parent 452e028 commit dd585ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/api/browser/mainThreadNotebookEditors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export class MainThreadNotebookEditors implements MainThreadNotebookEditorsShape
114114
if (notebookEditor) {
115115
return notebookEditor.getId();
116116
} else {
117-
throw new Error(`Notebook Editor creation failure for document ${resource}`);
117+
throw new Error(`Notebook Editor creation failure for document ${JSON.stringify(resource)}`);
118118
}
119119
}
120120

0 commit comments

Comments
 (0)