Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/core/src/vector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ export default class Vector<K extends Float32Array | Float64Array | Int8Array |
typedArray instanceof Uint32Array ||
typedArray instanceof BigUint64Array
) {
throw newError('The neo4j Vector class does not support Unsigned Integer Arrays, please use a signed IntArray')
throw newError('Invalid argument type passed to Vector constructor: should be signed integer or float TypedArray, got unsigned integer TypedArray')
} else {
// @ts-expect-error
throw newError(`The neo4j Vector class is a wrapper for TypedArrays. got ${(typedArray.toString() as string)}`)
throw newError(`Invalid argument type passed to vector constructor function: should be TypedArray, got ${typedArray.toString() as string}`)
}
this._typedArray = typedArray
}
Expand Down
4 changes: 2 additions & 2 deletions packages/neo4j-driver-deno/lib/core/vector.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.