Permalink
Browse files

adjust qq error log

  • Loading branch information...
1 parent a2feae6 commit ccf9c93a9c5468aac7b396be387cfdf7ccfcb932 @btspoony committed Jan 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/qq.js
View
2 lib/qq.js
@@ -57,7 +57,7 @@ QQ.prototype.request = function(method, isHttps, uri, params, callback) {
if(obj.ret == 0) {
callback(null, obj);
} else {
- callback(url + ' returns:\n' + data +'\n parms:'+ JSON.stringify(params));
+ callback({ ret: data.ret, msg: url + ' returns:\n' + data +'\n parms:'+ JSON.stringify(params) });
}
} else {
callback(null, data);

0 comments on commit ccf9c93

Please sign in to comment.