Permalink
Browse files

updated error handling for restler

  • Loading branch information...
1 parent 7eeda98 commit c5513f0d0a0126bf559e2411f2aa1d1decab4e69 @ewanleith committed Jun 24, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 app.js
View
7 app.js
@@ -109,6 +109,8 @@ function launchCollect() {
{
async.forEach(data['results'], printTweet, function(err) { })
}
+ }).on('error', function(err) {
+ console.warn(err);
});
@@ -118,7 +120,10 @@ function launchCollect() {
{
async.forEach(data['results'], printTweet, function(err) { })
}
- });
+ }).on('error', function(err) {
+ console.warn(err);
+ });
+
//console.log('Looping'); //Output logged data to console
}

0 comments on commit c5513f0

Please sign in to comment.