Details
Description
I have been unable to get errors thrown from within the callbacks of the couchbase.get() or couchbase.set() to be reported up the chain. It looks like they are being 'eaten' connection connection.get() in bucket.js.
see below for more info:
var driver = require('couchbase');
var config =
{ hosts : [ "localhost:8091" ], bucket : "default" };
driver.connect(config, function(err, couchbase) {
console.log("connected");
couchbase.set("new", "something", function(err, meta)
);
});
and/or:
var driver = require('couchbase');
var config =
{ hosts : [ "localhost:8091" ], bucket : "default", debug : true };
var test = function(callback)
{ callback(); };
driver.connect(config, function(err, couchbase) {
if (err)
couchbase.set("new", "something", function(err, meta) {
couchbase.get("new", function(err, doc, meta)
);
});
test(function()
);
});
Attachments
For Gerrit Dashboard: JSCBC-24 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
25874,3 | Add testcase for JSCBC-24 | master | couchnode | Status: MERGED | +2 | +1 |
26498,2 | JSCBC-24 Added v8 error catching | master | couchnode | Status: MERGED | +2 | +1 |