   makeRequest bot, endpoint, null, (err, response) ->
 
     if err
-      return deferred.resolve(err)
+      return deferred.reject(err)
 
     deferred.resolve(dataHelper.serializeActivityDetails(response))
 

  endpoint = "Advisors/V2"
  makeRequest bot, endpoint, null, (err, response) ->

    activityDetails = dataHelper.serializeActvity(response, activityKey)
    if activityKey not in constants.FURTHER_DETAILS
      return deferred.resolve(activityDetails)

    parseActivityHash(bot, activityDetails.activityHash).then (details) ->
      combinedDetails = Object.assign {}, activityDetails, details
      deferred.resolve(combinedDetails)

  deferred.promise

parseActivityHash = (bot, activityHash) ->

    else
      data['activityKey'] = activityKey

    weeklyActivityDeferred = getPublicWeeklyActivity(res, data.activityKey)
    weeklyActivityDeferred.then (activityDetails) ->

      payload =
        message: res.message
        attachments: [dataHelper.parseActivityDetails(activityDetails)]

      robot.emit('slack-attachment', payload)

    ,(err) ->
      sendError(robot, res, err)

    # # interprets input based on length
    # # if 3 elements, assume: gamertag, network, bucket
