Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated error handling for restler

  • Loading branch information...
commit c5513f0d0a0126bf559e2411f2aa1d1decab4e69 1 parent 7eeda98
@ewanleith authored
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
}
Please sign in to comment.
Something went wrong with that request. Please try again.