Browse files

output raw error if publish_actions fails

  • Loading branch information...
1 parent c17a295 commit ebde3085cd36b3627f4b947eb75642556c808999 @prabirshrestha prabirshrestha committed Apr 11, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 samples/scrumptious/routes/home.js
View
3 samples/scrumptious/routes/home.js
@@ -65,7 +65,8 @@ exports.loginCallback = function (req, res, next) {
FB.api('/me/' + config.facebook.appNamespace +':eat', 'post', parameters , function (result) {
console.log(result);
if(!result || result.error) {
- return res.send(500, 'error');
+ return res.send(500, result || 'error');
+ // return res.send(500, 'error');
}
return res.redirect('/');

0 comments on commit ebde308

Please sign in to comment.