Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f71e7797ba
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (20 sloc) 0.622 kb
<%comment%>
this.<%funcName%> = function(msg, block, callback) {
var self = this;
this.client.httpSend(msg, block, function(err, res) {
if (err)
return self.sendError(err, null, msg, callback);
var ret;
try {
ret = res.data && JSON.parse(res.data);
}
catch (ex) {
if (callback)
callback(new error.InternalServerError(ex.message), res);
return;
}
<%afterRequest%>
if (callback)
callback(null, ret);
});
};
Jump to Line
Something went wrong with that request. Please try again.