Skip to content

Instantly share code, notes, and snippets.

var http_on_error = function http_on_error(context) {
return function(e) {
console.log("Got error: " + e.message);
context.done(e.message); // I need to pass-in the context variable
};
};
var http_on_success = function http_on_error(context) {
return function(e) {