[#154, backend/elasticsearch][s]: backend errors now reported up the stack (implement deferred reject when call to backend fails).

This commit is contained in:
Rufus Pollock
2012-06-15 22:32:18 +01:00
parent 87df9ea080
commit 617d3440f0
2 changed files with 9 additions and 1 deletions

View File

@@ -128,6 +128,7 @@ test("query", function() {
return {
done: function(callback) {
callback(sample_data);
return this;
},
fail: function() {
}
@@ -224,10 +225,11 @@ test("query", function() {
return {
done: function(callback) {
callback(sample_data);
return this;
},
fail: function() {
}
}
};
}
});