fix
This commit is contained in:
parent
3e9653b9cf
commit
e37abbc4f5
@ -35,12 +35,12 @@ module.exports = function(url, cmds){
|
|||||||
return new Promise((resolve,reject)=>{
|
return new Promise((resolve,reject)=>{
|
||||||
return request.get(options, function (err, response, body) {
|
return request.get(options, function (err, response, body) {
|
||||||
if (err) {
|
if (err) {
|
||||||
bot.error(err);
|
//bot.error(err);
|
||||||
return reject(500);
|
return reject(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (response.statusCode != 200 ){
|
if (response.statusCode != 200 ){
|
||||||
bot.error(response.statusCode);
|
//bot.error(response.statusCode);
|
||||||
return reject(500);//response.statusCode);
|
return reject(500);//response.statusCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user