Rocket.Chat.js.SDK
Rocket.Chat.js.SDK copied to clipboard
RestAPI improve error handling
As far as I understand it, the current code does not allow to handle errors on api.get and api.post calls. I added rethrow instructions to work around this issue. If I got something wrong here, please help me find a way to handle api-errors in frontend with the current release.
If this is a "bug" please accept my PR. Thx!
We are using this patch in production (with rocketchat-hubot) for quite a while now without any problems. Is there anything I can do to get this upstream?
Hey, admin :D Merge this PR
Maybe @sampaiodiego could give a short statement on this topic (RestAPI error handling)? It would be really great.
Hey! any update on this PR?
@sampaiodiego Sorry to bother you, but this PR is quite useful, especially for bots