Authored by weiqingting

提交

... ... @@ -125,7 +125,7 @@ function __requestApi(config, apiOpt, req, callback) {
if (response && response.statusCode === 200) {
var obj = JSON.parse(body)
if (!(typeof obj == "object")) {
_err_.message = "Error[json parse@" + options.title + "--"+options.url+"]:" + body;
_err_.message = "Error[json parse@" + options.title + "--"+options.url+"]:" + JSON.stringify(body);
console.info(_err_.message);
console.error(_err_);
return callback(_err_, null);
... ...
... ... @@ -125,7 +125,7 @@ function __requestApi(config, apiOpt, req, callback) {
if (response && response.statusCode === 200) {
var obj = JSON.parse(body)
if (!(typeof obj == "object")) {
_err_.message = "Error[json parse@" + options.title + "--"+options.url+"]:" + body;
_err_.message = "Error[json parse@" + options.title + "--"+options.url+"]:" + JSON.stringify(body);
console.info(_err_.message);
console.error(_err_);
return callback(_err_, null);
... ...