Commit b69dfc1b authored by Tristan Cavelier's avatar Tristan Cavelier

fix bug: storage.js: createErrorObject method does not exist anymore

parent eeeb06e6
...@@ -84,52 +84,73 @@ var storage = function(spec, my) { ...@@ -84,52 +84,73 @@ var storage = function(spec, my) {
that.post = function () { that.post = function () {
setTimeout(function () { setTimeout(function () {
that.error(that.createErrorObject( that.error({
0,"Not Implemented Yet","\"Post\" command is not implemented" "status": 0,
)); "statusText": "Not Implemented",
"error": "not_implemented",
"message": "\"Post\" command is not implemented",
"reason": "Command not implemented"
});
}); });
}; };
that.put = function () { that.put = function () {
setTimeout(function () { setTimeout(function () {
that.error(that.createErrorObject( that.error({
0,"Not Implemented Yet","\"Put\" command is not implemented" "status": 0,
)); "statusText": "Not Implemented",
"error": "not_implemented",
"message": "\"Put\" command is not implemented",
"reason": "Command not implemented"
});
}); });
}; };
that.putAttachment = function () { that.putAttachment = function () {
setTimeout(function () { setTimeout(function () {
that.error(that.createErrorObject( that.error({
0,"Not Implemented Yet", "status": 0,
"\"PutAttachment\" command is not implemented" "statusText": "Not Implemented",
)); "error": "not_implemented",
"message": "\"PutAttachment\" command is not implemented",
"reason": "Command not implemented"
});
}); });
}; };
that.get = function () { that.get = function () {
setTimeout(function () { setTimeout(function () {
that.error(that.createErrorObject( that.error({
0,"Not Implemented Yet","\"Get\" command is not implemented" "status": 0,
)); "statusText": "Not Implemented",
"error": "not_implemented",
"message": "\"Get\" command is not implemented",
"reason": "Command not implemented"
});
}); });
}; };
that.allDocs = function () { that.allDocs = function () {
setTimeout(function () { setTimeout(function () {
that.error(that.createErrorObject( that.error({
0,"Not Implemented Yet", "status": 0,
"\"AllDocs\" command is not implemented" "statusText": "Not Implemented",
)); "error": "not_implemented",
"message": "\"AllDocs\" command is not implemented",
"reason": "Command not implemented"
});
}); });
}; };
that.remove = function () { that.remove = function () {
setTimeout(function () { setTimeout(function () {
that.error(that.createErrorObject( that.error({
0,"Not Implemented Yet", "status": 0,
"\"Remove\" command is not implemented" "statusText": "Not Implemented",
)); "error": "not_implemented",
"message": "\"Remove\" command is not implemented",
"reason": "Command not implemented"
});
}); });
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment