Skip to content

Commit b909062

Browse files
committed
chore: update error message
1 parent 6b0f02d commit b909062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/dom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const $d = document
99
export const findEle = (id: string, instance?: MindElixirInstance) => {
1010
const scope = instance ? instance.mindElixirBox : $d
1111
const ele = scope.querySelector<Topic>(`[data-nodeid=me${id}]`)
12-
if (!ele) throw new Error(`findEle: ${id} not found`)
12+
if (!ele) throw new Error(`FindEle: Node ${id} not found, maybe it's collapsed.`)
1313
return ele
1414
}
1515

0 commit comments

Comments
 (0)