message: making less delicate
diff: @@ -632,6 +632,10 @@ module.exports = function(controller) {
  if (err) {
  return reject(err);
  }
  + if(res.statusCode === 401){
  + console.error('Invalid Botkit Studio Token');
  + reject({error: 'Invalid Botkit Studio Token'});
  + }
  var json = null;
  @@ -641,10 +645,6 @@ module.exports = function(controller) {
  } catch (e) {
  }
  - if(res.statusCode === 401){
  - console.error('Invalid Botkit Studio Token');
  - reject({error: 'Invalid Botkit Studio Token'});
  - }else {
  if (!json || json == null) {
  return reject('Response from Botkit Studio API was empty or invalid JSON');
  } else if (json.error) {
  @@ -652,7 +652,6 @@ module.exports = function(controller) {
  } else {
  resolve(json);
  }
  - }
  });
  });
  }
  