botkit
botkit copied to clipboard
Facebook sendApi errors are being swallowed
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.
Looks cool!
Merged and shipped!