From e37abbc4f54568e27d88967ce042a250aa39725e Mon Sep 17 00:00:00 2001 From: Cedric Hoelzl Date: Fri, 20 Sep 2019 12:49:10 +0200 Subject: [PATCH] fix --- config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.js b/config.js index 11556ad..ac2634d 100644 --- a/config.js +++ b/config.js @@ -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); }