diff --git a/src/document/crdt/tree.ts b/src/document/crdt/tree.ts index 6b30b5b70..2b2794dc1 100644 --- a/src/document/crdt/tree.ts +++ b/src/document/crdt/tree.ts @@ -223,7 +223,9 @@ export class CRDTTreePos { const parentNode = tree.findFloorNode(parentID); let leftNode = tree.findFloorNode(leftSiblingID); if (!parentNode || !leftNode) { - throw new Error(`cannot find node at ${this}`); + throw new Error( + `cannot find node of CRDTTreePos(${parentID.toTestString()}, ${leftSiblingID.toTestString()})`, + ); } /**