Skip to content

Commit 384003b

Browse files
authored
fix: add detail to collab cursor error (#1449)
1 parent b721f25 commit 384003b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/core/src/extensions/Collaboration/createCollaborationExtensions.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Collaboration from "@tiptap/extension-collaboration";
2-
import { Awareness } from "y-protocols/awareness";
32
import CollaborationCursor from "@tiptap/extension-collaboration-cursor";
3+
import { Awareness } from "y-protocols/awareness";
44
import * as Y from "yjs";
55

66
export const createCollaborationExtensions = (collaboration: {
@@ -93,7 +93,9 @@ export const createCollaborationExtensions = (collaboration: {
9393
);
9494

9595
if (!clientState) {
96-
throw new Error("Could not find client state for user");
96+
throw new Error(
97+
"Could not find client state for user, " + JSON.stringify(user)
98+
);
9799
}
98100

99101
const clientID = clientState[0];

0 commit comments

Comments
 (0)