Skip to content

Commit 2aea2f3

Browse files
committed
Index handles are not document handles
1 parent 64f0d6c commit 2aea2f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/collection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export abstract class BaseCollection implements ArangoCollection {
7676
if (indexHandle.id) {
7777
return indexHandle.id;
7878
}
79-
throw new Error("Document handle must be a document or string");
79+
throw new Error("Index handle must be a index or string");
8080
}
8181
if (indexHandle.indexOf("/") === -1) {
8282
return this._idPrefix + indexHandle;

0 commit comments

Comments
 (0)