-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4330: Better Twilio error handling (#2765)
* 4330: raise on all twilio errors * fix message patients script * Simplify the error handling We can set the context as tags for Sentry, so that it will roll things up nicely in the Sentry UI. Also, we don't need to capture the message as an ivar, in fact the original exception is captured by Ruby for us as the `cause` - and Sentry will show details on that. I'm adding the original message into the custom message we have just for a bit easier scanning when looking at errors in Sentry. * Count attempted messages, sent, and errors * Maintain original response Some calls depend on this Co-authored-by: Rob Sanheim <rsanheim@gmail.com>
- Loading branch information
Showing
3 changed files
with
17 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters