Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1147 from nishant-chaturvedi/facebook-errors
Browse files Browse the repository at this point in the history
pass error object to the callbacks for failed send Api calls
  • Loading branch information
Ben Brown authored Jan 11, 2018
2 parents 38724ff + e5e8a85 commit 5d237d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Facebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function Facebookbot(configuration) {

if (body.error) {
botkit.debug('API ERROR', body.error);
return cb && cb(body.error.message);
return cb && cb(body.error);
}

botkit.debug('WEBHOOK SUCCESS', body);
Expand Down

0 comments on commit 5d237d5

Please sign in to comment.