Skip to content

Commit 20a4164

Browse files
authored
Merge pull request microsoft#165528 from amunger/errorMessage
better error message
2 parents 65a6e4f + dd585ed commit 20a4164

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)