This commit is contained in:
Cedric Hoelzl 2019-09-20 12:49:10 +02:00
parent 3e9653b9cf
commit e37abbc4f5

View File

@ -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);
}