Permalink
Browse files

msg.send errors instead of sending them to the console.

  • Loading branch information...
1 parent 2babdd8 commit 4166adf87829951c780860a92d13a62c01a448b4 @mmb mmb committed Oct 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/scripts/youtube-info.coffee
@@ -35,7 +35,7 @@ module.exports = (robot) ->
entry = data.entry
msg.send "YouTube: #{entry.title.$t} (#{formatTime(entry.media$group.yt$duration.seconds)})"
else
- console.error "youtube-info script error: #{api_url} returned #{res.statusCode}: #{body}"
+ msg.send "YouTube: error: #{api_url} returned #{res.statusCode}: #{body}"
formatTime = (seconds) ->
min = Math.floor(seconds / 60)

0 comments on commit 4166adf

Please sign in to comment.