more console.logging in case of error
authorDominique Hazaël-Massieux <dom@w3.org>
Wed, 31 Aug 2011 18:22:19 +0200
changeset 191 7b0015a41e79
parent 190 1bf9fc669e29
child 192 78cb3b4723b4
more console.logging in case of error
node.js/twitter.js
--- a/node.js/twitter.js	Wed Aug 31 18:19:24 2011 +0200
+++ b/node.js/twitter.js	Wed Aug 31 18:22:19 2011 +0200
@@ -68,6 +68,7 @@
 		'end',
 		function () {
 		    console.log("Twitter stream terminated with error " + res.statusCode);
+		    console.log(JSON.stringify(res.headers));
 		});
 	}
     );