       .headers('X-Cachet-Token': token)
       .get() (err, res, body) ->
         if err
-          msg.reply err
+          msg.reply "[ERROR] #{err}"
         else
           try
             json = JSON.parse body

            else
              msg.send results.join '\n'
          catch e
            msg.reply "Error: #{e}"

  robot.respond /cachet component set ([a-zA-Z0-9 ]+) ([0-9]+)/i, (msg) ->
    name = msg.match[1]

              'You might want to change the component status now.'
            ].join ' '
          catch e
            msg.reply "[ERROR] #{e}"

  changeComponentStatus = (component_name, status, msg) ->
    component_id = _components[component_name] ? 0
