Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 22 lines (20 sloc) 0.622 kb
4981dca Mike de Boer move from https://github.com/c9/node-github3 to https://github.com/ajaxo...
mikedeboer authored
1 <%comment%>
2 this.<%funcName%> = function(msg, block, callback) {
3 var self = this;
4 this.client.httpSend(msg, block, function(err, res) {
5 if (err)
6 return self.sendError(err, null, msg, callback);
7
8 var ret;
9 try {
8299ced Mike de Boer safer response data parsing in response handlers and added user.getOrgs(...
mikedeboer authored
10 ret = res.data && JSON.parse(res.data);
4981dca Mike de Boer move from https://github.com/c9/node-github3 to https://github.com/ajaxo...
mikedeboer authored
11 }
12 catch (ex) {
13 if (callback)
14 callback(new error.InternalServerError(ex.message), res);
15 return;
16 }
17 <%afterRequest%>
18 if (callback)
19 callback(null, ret);
20 });
21 };
Something went wrong with that request. Please try again.