Skip to content

Commit

Permalink
callback err
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmud committed Aug 12, 2014
1 parent 63bcccd commit 27f5467
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/douban.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ Client.prototype.request = function(method, url, data, callback) {
ret = JSON.parse(body);
} catch (e) {
error('Error parsing json: %s', body)
return callback(e, ret, res)
}
callback(err, ret, res);
});
Expand Down

0 comments on commit 27f5467

Please sign in to comment.