Permalink
Browse files

Merge branch 'master' of heroku.com:wikitweets

  • Loading branch information...
2 parents b46623e + 707f540 commit 345fd26def101054e05c0bbc25499d44f005bdb1 @edsu committed Aug 7, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 app.js
View
5 app.js
@@ -39,10 +39,11 @@ function main() {
var tweets = new twitter(getConfig());
tweets.stream('statuses/filter', {track: 'wikipedia'}, function(stream) {
stream.on('data', function(t) {
+ console.log(t);
tweet(t, sockets);
});
- stream.on('error', function(e) {
- console.log('uhoh got a twitter stream error: ' + e);
+ stream.on('error', function(err, code) {
+ console.log('uhoh got a twitter stream error: ' + err + ' ; ' + code);
});
stream.on('limit', function(l) {
console.log('whoops we got limited by twitter: ' + l);

0 comments on commit 345fd26

Please sign in to comment.