Browse files

Fixes to capture errors

  • Loading branch information...
1 parent d7fd944 commit 1d3fc2e7e75ac3c6837b7ade006648d294c5aea4 @kuryaki committed Dec 21, 2012
Showing with 10 additions and 3 deletions.
  1. +7 −1 app.js
  2. +1 −1 package.json
  3. +2 −1 public/css/style.css
View
8 app.js
@@ -65,7 +65,13 @@ var broadcast_feed = function(articles, last_updated, subscribers){
try{
subscribers.map(function(subscriber){
console.log(articles[i].author + ' emmited new article to ' + subscriber);
- request.defaults({body:articles[i]}).post(subscriber, {json:true});
+ request.defaults({body:articles[i]}).post(subscriber, {json:true},function(error, response, body){
+ if(response.headers.status!==200){
+ console.log(subscriber);
+ console.log(error);
+ console.log(body);
+ }
+ });
});
}catch(error){
console.log(errorHandler);
View
2 package.json
@@ -1,6 +1,6 @@
{
"name": "feedsubscriber",
- "version": "0.0.1-14",
+ "version": "0.0.1-15",
"private": true,
"scripts": {
"start": "node app.js"
View
3 public/css/style.css
@@ -2,6 +2,7 @@ body {
padding: 50px;
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}
-a {
+a,
+h1 {
color: #00B7FF;
}

0 comments on commit 1d3fc2e

Please sign in to comment.