botkit icon indicating copy to clipboard operation
botkit copied to clipboard

Facebook sendApi errors are being swallowed

Open nishch opened this issue 9 years ago • 2 comments

Currently Facebook bot in the botkit, swallows the error objects obtained as a result of sendApi call, and simply passes the error message (string) to the callbacks. This makes it impossible to check sendApi error codes and error subcodes and handle those differently based on the business use cases.

It would be very helpful to pass the entire error object as opposed to just the error message to the callbacks.

nishch avatar Nov 27 '17 08:11 nishch

Looks cool!

third1020 avatar Dec 14 '17 08:12 third1020

Merged and shipped!

benbrown avatar Jan 18 '18 22:01 benbrown