Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

log errors talking to campfire

  • Loading branch information...
commit b026d7233a2fe6a4b90679fb7cac717b161fc57f 1 parent 84febff
Aman Gupta authored October 24, 2011

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  src/hubot/campfire.coffee
4  src/hubot/campfire.coffee
@@ -6,7 +6,8 @@ class Campfire extends Robot
6 6
   send: (user, strings...) ->
7 7
     strings.forEach (str) =>
8 8
       @bot.Room(user.room).speak str, (err, data) ->
9  
-        console.log "#{user}: #{str}"
  9
+        if err
  10
+          console.log "campfire error: #{err}"
10 11
 
11 12
   reply: (user, strings...) ->
12 13
     strings.forEach (str) =>
@@ -180,6 +181,7 @@ class CampfireStreaming extends EventEmitter
180 181
       request.end(body)
181 182
     else
182 183
       request.end()
  184
+
183 185
     request.on "error", (err) ->
184 186
       console.log err
185 187
       console.log err.stack

0 notes on commit b026d72

Please sign in to comment.
Something went wrong with that request. Please try again.