We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec97266 commit 292de9eCopy full SHA for 292de9e
lib/avltree.js
@@ -270,7 +270,7 @@ _AVLTree.prototype.insert = function (key, value) {
270
// Same key: no change in the tree structure
271
if (currentNode.compareKeys(currentNode.key, key) === 0) {
272
if (currentNode.unique) {
273
- var err = new Error("Can't insert key " + key + ", it violates the unique constraint");
+ var err = new Error("Can't insert key " + JSON.stringify(key) + ", it violates the unique constraint");
274
err.key = key;
275
err.errorType = 'uniqueViolated';
276
throw err;
0 commit comments