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 request.get(options, function (err, response, body) {
|
||||
if (err) {
|
||||
bot.error(err);
|
||||
return reject(500);
|
||||
//bot.error(err);
|
||||
return reject(err);
|
||||
}
|
||||
|
||||
if (response.statusCode != 200 ){
|
||||
bot.error(response.statusCode);
|
||||
//bot.error(response.statusCode);
|
||||
return reject(500);//response.statusCode);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user